![]() |
|
Using Custom Vhost Entries for Webmail, MySQL, Etc. - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: Community Guides & How-To's v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=33) +---- Thread: Using Custom Vhost Entries for Webmail, MySQL, Etc. (/showthread.php?tid=495) |
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - iraqiboy90 - 04-18-2020 Thanks for the reply
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Jettaman - 04-18-2020 Your welcome. RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - iraqiboy90 - 04-18-2020 (04-18-2020, 08:21 AM)Jettaman Wrote: Your welcome. Btw, quick question. Should I put it outside or within the Directory tag? What's the difference? and the open_basedir string makes me get Code: CONFIGURATION ERROR
config.inc.php was not found.RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Jettaman - 04-21-2020 (04-18-2020, 08:01 PM)iraqiboy90 Wrote: Btw, quick question. Should I put it outside or within the Directory tag? What's the difference? Sorry for late response. See copy for working CentOS 7 system custom webmail lockdown- Code: # Configuration for Roundcube Webmail.
<VirtualHost *:80>
ServerName webmail.[YOUR DOMAIN].com
ServerAdmin [YOUR@EMAIL>COM]
DocumentRoot "/etc/sentora/panel/etc/apps/webmail"
php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/var/sentora/temp/:/var/sentora/logs/roundcube"
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"
php_admin_value upload_tmp_dir "/var/sentora/temp/"
php_admin_value session.save_path "/var/sentora/temp/"
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html
<Directory "/etc/sentora/panel/">
Options +FollowSymLinks -indexes
AllowOverride All
Require all granted
</Directory>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
AddType application/x-httpd-php .php3 .php
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 404 /_errorpages/404.html
ErrorLog "/var/sentora/logs/roundcube/webmail.[YOUR DOMAIN].com-error.log"
# Custom settings are loaded below this line (if any exist)
</VirtualHost>
# END DOMAIN: webmail.[YOUR DOMAIN].com
################################################################This is secure like all domains and subdomains created by Sentora. Take a look hereĀ Code: [/etc/sentora/configs/apache/httpd-vhosts.conf] // with created domainsUPDATE: You need to move roundcube configs to /etc/sentora/panel/etc/apps/webmail/config IGNORE CONTROL PANEL. CREATE A DOMAIN AND FOLLOW SUIT. |