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


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 18 ,269 03-08-2018, 09:54 PM
Last Post: etienne7702
How to overwrite default admin. vhost? NIicK 1 7 ,880 03-27-2016, 01:16 AM
Last Post: Me.B
Roundcube Webmail https path pthalmann 0 5 ,532 12-29-2014, 09:09 AM
Last Post: pthalmann

Forum Jump:


Users browsing this thread: 1 Guest(s)