RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
03-03-2017, 07:53 AM
(This post was last modified: 03-03-2017, 11:28 PM by ddlxl.)
Hello,
I'm trying to use the webmail.domain.com. when I use the custom fields it will never use the custom setttings unless I edit the vhost itself wich will be reset after daemon run.
like i said, the setting will be "duplicated" the original and the custom settings will appear in the vhost. either I comment the original or comment the custom settings it will work untill daemon run.
Best regards
EDIT:
here's how it shows at vhost file (and it works now.. I have no idea why either)
I'm even more confused now.. after daemon run it didnt change the document root of the original conf. Open base dir have to be commented because apache will fail if turned on.
Best regards
I'm trying to use the webmail.domain.com. when I use the custom fields it will never use the custom setttings unless I edit the vhost itself wich will be reset after daemon run.
like i said, the setting will be "duplicated" the original and the custom settings will appear in the vhost. either I comment the original or comment the custom settings it will work untill daemon run.
Best regards
EDIT:
here's how it shows at vhost file (and it works now.. I have no idea why either)
Code:
# DOMAIN: mail.domain.tld
<virtualhost *:80>
ServerName mail.domain.tld
ServerAdmin admin@localhost
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/" -> (MANUALLY EDIT THIS AND IT STAYED AFTER DAEMON RUN)
open_basedir "/var/sentora/hostdata/USER/public_html/mail_domain_tld:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ErrorLog "/var/sentora/logs/domains/USER/mail.domain.tld-error.log"
CustomLog "/var/sentora/logs/domains/USER/mail.domain.tld-access.log" combined
CustomLog "/var/sentora/logs/domains/USER/mail.domain.tld-bandwidth.log" common
<Directory "/etc/sentora/panel/etc/apps/webmail">
Options +FollowSymLinks -Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)
# Custom VH settings (if any exist)
</virtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAdmin mail@domain.tld
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ServerName mail.domain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</virtualhost>
# END DOMAIN: mail.domain.tld
I'm even more confused now.. after daemon run it didnt change the document root of the original conf. Open base dir have to be commented because apache will fail if turned on.
Best regards