This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Using Custom Vhost Entries for Webmail, MySQL, Etc.
#11
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
Don't know if someone needs this, but some of the above didn't work on my install.
Hopefully someone who has the same problem can use this in the future..
So i took this from my old Zpanel install and changed it to Sentora and it worked!
It's for CentOS but i think it's the same on Ubuntu..

Code:
</VirtualHost>

# Configuration for phpMyAdmin
<VirtualHost *:80>
    ServerAdmin mail@domain.com
    DocumentRoot "/etc/sentora/panel/etc/apps/phpmyadmin/"
    ServerName sql.domain.com
    AddType application/x-httpd-php .php3 .php
    <Directory />
        Options FollowSymLinks Indexes
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>
</VirtualHost>

# Configuration for WebMail
<VirtualHost *:80>
    ServerAdmin mail@domain.com
    DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
   ServerName webmail.domain.com
    AddType application/x-httpd-php .php3 .php
    <Directory />
        Options FollowSymLinks Indexes
        AllowOverride All
        Order Allow,Deny
        Allow from all
    </Directory>
</VirtualHost>

# Add Alias for DNS-Less Previews
<VirtualHost *:80>
    ServerAdmin mail@domain.com
    ServerName sites.domain.com
    DocumentRoot "/var/sentora/hostdata"
    AliasMatch ^/~([a-zA-Z0-9]+)/?(.*) /var/sentora/hostdata/$1/public_html/$2
    <Directory /var/sentora/hostdata>
        Options FollowSymLinks Indexes
        AllowOverride All
        Order Allow,Deny
        Allow from all
        DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
        <IfModule mod_php5.c>
            AddType application/x-httpd-php .php
            php_flag magic_quotes_gpc Off
            php_flag track_vars On
            php_flag register_globals Off
            php_admin_value upload_tmp_dir /var/sentora/temp
        </IfModule>
    </Directory>

The forum changed all @ to [at], so you have to change it back yourself..

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by: karlis


Messages In This Thread
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - by Ron-e - 02-16-2015, 06:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
SSL and Custom Vhost Entries for Webmail etienne7702 5 15 ,829 03-08-2018, 09:54 PM
Last Post: etienne7702
How to overwrite default admin. vhost? NIicK 1 7 ,034 03-27-2016, 01:16 AM
Last Post: Me.B
Roundcube Webmail https path pthalmann 0 4 ,891 12-29-2014, 09:09 AM
Last Post: pthalmann

Forum Jump:


Users browsing this thread: 13 Guest(s)