RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
02-16-2015, 06:56 AM
(This post was last modified: 02-28-2015, 12:17 AM by Ron-e.)
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..
The forum changed all @ to [at], so you have to change it back yourself..
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 Demo ● My Github ● Auxio Github ●
● Zentora theme ● S-Type theme ● CstyleX theme ●
● flat-color-icons ● small-n-flat-icons ●
●
Sentora's development takes way too long, so i'm transitioning to HestiaCP.
● My Sentora Demo ● My Github ● Auxio Github ●
● Zentora theme ● S-Type theme ● CstyleX theme ●
● flat-color-icons ● small-n-flat-icons ●
●
Sentora's development takes way too long, so i'm transitioning to HestiaCP.