File: //usr/local/apache/conf.d/vhosts/effefe.com.conf
<VirtualHost 157.90.185.123:80>
ServerName effefe.com
ServerAlias www.effefe.com
ServerAdmin webmaster@effefe.com
DocumentRoot /home/johanbla/effefe.com
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/johanbla/effefe.com/cgi-bin/
CustomLog /usr/local/apache/domlogs/effefe.com.bytes bytes
CustomLog /usr/local/apache/domlogs/effefe.com.log combined
ErrorLog /usr/local/apache/domlogs/effefe.com.error.log
# Custom settings are loaded below this line (if any exist)
# IncludeOptional "/usr/local/apache/conf/userdata/johanbla/effefe.com/*.conf"
<IfModule mod_setenvif.c>
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled johanbla
</IfModule>
<IfModule mod_suexec.c>
SuexecUserGroup johanbla johanbla
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup johanbla johanbla
suPHP_ConfigPath /home/johanbla
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid johanbla johanbla
</IfModule>
<IfModule itk.c>
AssignUserID johanbla johanbla
</IfModule>
<Directory "/home/johanbla/effefe.com">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
<IfModule proxy_fcgi_module>
<FilesMatch \.php$>
SetHandler "proxy:unix:/opt/alt/php-fpm81/usr/var/sockets/johanbla.sock|fcgi://localhost"
</FilesMatch>
</IfModule>
</VirtualHost>
<VirtualHost 157.90.185.123:80>
ServerName webmail.effefe.com
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
ProxyPass / http://127.0.0.1:2095/
ProxyPassReverse / http://127.0.0.1:2095/
<Proxy *>
AllowOverride All
</Proxy>
</IfModule>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</VirtualHost>
<VirtualHost 157.90.185.123:80>
ServerName mail.effefe.com
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
ProxyPass / http://127.0.0.1:2095/
ProxyPassReverse / http://127.0.0.1:2095/
<Proxy *>
AllowOverride All
</Proxy>
</IfModule>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</VirtualHost>
<VirtualHost 157.90.185.123:80>
ServerName cpanel.effefe.com
<IfModule mod_proxy.c>
<IfModule !ssl_module>
LoadModule ssl_module modules/mod_ssl.so
</IfModule>
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
RewriteEngine on
RewriteRule ^/roundcube$ /roundcube/ [R]
ProxyPass /roundcube/ https://127.0.0.1:2031/roundcube/
ProxyPassReverse /roundcube https://127.0.0.1:2031/roundcube/
RewriteRule ^/pma$ /pma/ [R]
ProxyPass /pma/ https://127.0.0.1:2031/pma/
ProxyPassReverse /pma https://127.0.0.1:2031/pma/
ProxyPass / https://127.0.0.1:2083/
ProxyPassReverse / https://127.0.0.1:2083/
<Proxy *>
AllowOverride All
</Proxy>
</IfModule>
<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule>
</VirtualHost>