(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?
and the open_basedir string makes me get
Code:CONFIGURATION ERROR
config.inc.php was not found.
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 domains
UPDATE: You need to move roundcube configs to /etc/sentora/panel/etc/apps/webmail/config
IGNORE CONTROL PANEL. CREATE A DOMAIN AND FOLLOW SUIT.
-Jettaman-
NEW: Sentora v.2.0.1 has been released!!!
Sentora's quick recovery depends on community support and donations. We need to stand as one and help Sentora into the future.
Donate HERE and do your part. We thank you for your support.
NEW: Sentora v.2.0.1 has been released!!!
Sentora's quick recovery depends on community support and donations. We need to stand as one and help Sentora into the future.
Donate HERE and do your part. We thank you for your support.