This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Using Custom Vhost Entries for Webmail, MySQL, Etc.
#81
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
Thanks for the reply Smile
Reply
Thanks given by:
#82
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
Your welcome.
-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.
Reply
Thanks given by:
#83
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(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.
Reply
Thanks given by:
#84
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(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.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
SSL and Custom Vhost Entries for Webmail etienne7702 5 15 ,878 03-08-2018, 09:54 PM
Last Post: etienne7702
How to overwrite default admin. vhost? NIicK 1 7 ,049 03-27-2016, 01:16 AM
Last Post: Me.B
Roundcube Webmail https path pthalmann 0 4 ,904 12-29-2014, 09:09 AM
Last Post: pthalmann

Forum Jump:


Users browsing this thread: 4 Guest(s)