opt/configs/apache/conf/domains/somedomain.com.conf### begin - web of 'somedomain.com' - do not remove/modify this line
Define port ${global::port}
Define portssl ${global::portssl}
Define ip ${global::ip}
## cp for 'somedomain.com'
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName cp.somedomain.com
DocumentRoot "/home/kloxo/httpd/cp"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /cp.somedomain.com.0fake "/home/kloxo/httpd/cp/cp.somedomain.com.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.0fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /cp.somedomain.com.0fake
<Files "cp.somedomain.com.0fake">
RewriteCond %{REQUEST_URI} !cp.somedomain.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/cp/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## webmail for 'somedomain.com'
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName webmail.somedomain.com
DocumentRoot "/home/kloxo/httpd/webmail/roundcube"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /webmail.somedomain.com.0fake "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.0fake"
#FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.0fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.0fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /webmail.somedomain.com.0fake
<Files "webmail.somedomain.com.0fake">
RewriteCond %{REQUEST_URI} !webmail.somedomain.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## web for 'somedomain.com'
<VirtualHost ${ip}:${port}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerAdmin webmaster@somedomain.com
ServerName somedomain.com
ServerAlias
www.somedomain.com DocumentRoot "/home/admin/somedomain.com"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
Alias /__kloxo "/home/admin/kloxoscript/"
Redirect /kloxo "
https://cp.somedomain.com:8031"
Redirect /kloxononssl "
http://cp.somedomain.com:8032"
Redirect /webmail "
http://webmail.somedomain.com"
Redirect /cp "
http://cp.somedomain.com"
ScriptAlias /cgi-bin/ "/home/admin/somedomain.com/cgi-bin/"
<IfModule suexec.c>
SuexecUserGroup admin admin
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
suPHP_Configpath "/home/httpd/somedomain.com/"
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RMinUidGid admin admin
</IfModule>
<IfModule itk.c>
AssignUserId admin admin
<Location "/awstats/">
AssignUserId apache apache
</Location>
</IfModule>
<IfModule mod_fastcgi.c>
Alias /somedomain.com.0fake "/home/admin/somedomain.com/somedomain.com.0fake"
#FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.0fake" -host 127.0.0.1:57797 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.0fake" -socket /opt/configs/php-fpm/sock/admin.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /somedomain.com.0fake
<Files "somedomain.com.0fake">
RewriteCond %{REQUEST_URI} !somedomain.com.0fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/admin/somedomain.com/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/admin/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:57797/
ProxyPassReverse / fcgi://127.0.0.1:57797/
</IfModule>
<Directory "/home/admin/somedomain.com/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
<IfModule mod_php5.c>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
php_admin_value sendmail_from "somedomain.com"
Include /home/kloxo/client/admin/prefork.inc
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/admin:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:"
</IfModule>
</Location>
CustomLog "/home/httpd/somedomain.com/stats/somedomain.com-custom_log" combined
ErrorLog "/home/httpd/somedomain.com/stats/somedomain.com-error_log"
ScriptAlias /awstats/ "/home/kloxo/httpd/awstats/wwwroot/cgi-bin/"
Alias /awstatscss "/home/kloxo/httpd/awstats/wwwroot/css/"
Alias /awstatsicons "/home/kloxo/httpd/awstats/wwwroot/icon/"
Redirect /stats "
http://somedomain.com/awstats/awstats.pl"
Redirect /stats/ "
http://somedomain.com/awstats/awstats.pl"
<Location "/stats/">
Options +Indexes
</Location>
<Location "/awstats/">
AuthType Basic
AuthName "Awstats"
#AuthUserFile "/home/admin/__dirprotect/__stats"
AuthUserFile "/home/httpd/somedomain.com/__dirprotect/__stats"
require valid-user
</Location>
</VirtualHost>
## cp for 'somedomain.com'
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName cp.somedomain.com
DocumentRoot "/home/kloxo/httpd/cp"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule mod_ssl.c>
SSLEngine on
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /cp.somedomain.com.1fake "/home/kloxo/httpd/cp/cp.somedomain.com.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.1fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/cp/cp.somedomain.com.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /cp.somedomain.com.1fake
<Files "cp.somedomain.com.1fake">
RewriteCond %{REQUEST_URI} !cp.somedomain.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
# Options +Indexes +FollowSymlinks
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/cp/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## webmail for 'somedomain.com'
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerName webmail.somedomain.com
DocumentRoot "/home/kloxo/httpd/webmail/roundcube"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
<IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
<IfModule suexec.c>
SuexecUserGroup apache apache
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup apache apache
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RMinUidGid apache apache
</IfModule>
<IfModule itk.c>
AssignUserId apache apache
</IfModule>
<IfModule mod_fastcgi.c>
Alias /webmail.somedomain.com.1fake "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.1fake"
#FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.1fake" -host 127.0.0.1:50000 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/kloxo/httpd/webmail/roundcube/webmail.somedomain.com.1fake" -socket /opt/configs/php-fpm/sock/apache.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /webmail.somedomain.com.1fake
<Files "webmail.somedomain.com.1fake">
RewriteCond %{REQUEST_URI} !webmail.somedomain.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:50000/
ProxyPassReverse / fcgi://127.0.0.1:50000/
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
</Location>
<Directory "/home/kloxo/httpd/webmail/roundcube/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
## web for 'somedomain.com'
<VirtualHost ${ip}:${portssl}>
SetEnvIf X-Forwarded-Proto https HTTPS=1
ServerAdmin webmaster@somedomain.com
ServerName somedomain.com
ServerAlias
www.somedomain.com <IfModule mod_ssl.c>
SSLEngine On
SSLProtocol ALL -SSLv2
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /home/kloxo/httpd/ssl/venet0_0___localhost.pem
SSLCertificateKeyFile /home/kloxo/httpd/ssl/venet0_0___localhost.key
</IfModule>
DocumentRoot "/home/admin/somedomain.com"
DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
Alias /__kloxo "/home/admin/kloxoscript/"
Redirect /kloxo "
https://cp.somedomain.com:8031"
Redirect /kloxononssl "
http://cp.somedomain.com:8032"
Redirect /webmail "
https://webmail.somedomain.com"
Redirect /cp "
https://cp.somedomain.com"
ScriptAlias /cgi-bin/ "/home/admin/somedomain.com/cgi-bin/"
<IfModule suexec.c>
SuexecUserGroup admin admin
</IfModule>
<IfModule mod_suphp.c>
SuPhp_UserGroup admin admin
suPHP_Configpath "/home/httpd/somedomain.com/"
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid admin admin
RMinUidGid admin admin
</IfModule>
<IfModule itk.c>
AssignUserId admin admin
<Location "/awstats/">
AssignUserId apache apache
</Location>
</IfModule>
<IfModule mod_fastcgi.c>
Alias /somedomain.com.1fake "/home/admin/somedomain.com/somedomain.com.1fake"
#FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.1fake" -host 127.0.0.1:57797 -idle-timeout 90 -pass-header Authorization
FastCGIExternalServer "/home/admin/somedomain.com/somedomain.com.1fake" -socket /opt/configs/php-fpm/sock/admin.sock -idle-timeout 90 -pass-header Authorization
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /somedomain.com.1fake
<Files "somedomain.com.1fake">
RewriteCond %{REQUEST_URI} !somedomain.com.1fake
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Directory "/home/admin/somedomain.com/">
Options +ExecCGI
AddHandler fcgid-script .php
FCGIWrapper /home/kloxo/client/admin/php5.fcgi .php
</Directory>
</IfModule>
<IfModule mod_proxy_fcgi.c>
ProxyPass / fcgi://127.0.0.1:57797/
ProxyPassReverse / fcgi://127.0.0.1:57797/
</IfModule>
<Directory "/home/admin/somedomain.com/">
AllowOverride All
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
<IfModule mod_php5.c>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
php_admin_value sendmail_from "somedomain.com"
Include /home/kloxo/client/admin/prefork.inc
</IfModule>
<Location "/">
Allow from all
Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/admin:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:"
</IfModule>
</Location>
CustomLog "/home/httpd/somedomain.com/stats/somedomain.com-custom_log" combined
ErrorLog "/home/httpd/somedomain.com/stats/somedomain.com-error_log"
ScriptAlias /awstats/ "/home/kloxo/httpd/awstats/wwwroot/cgi-bin/"
Alias /awstatscss "/home/kloxo/httpd/awstats/wwwroot/css/"
Alias /awstatsicons "/home/kloxo/httpd/awstats/wwwroot/icon/"
Redirect /stats "
https://somedomain.com/awstats/awstats.pl"
Redirect /stats/ "
https://somedomain.com/awstats/awstats.pl"
<Location "/stats/">
Options +Indexes
</Location>
<Location "/awstats/">
AuthType Basic
AuthName "Awstats"
#AuthUserFile "/home/admin/__dirprotect/__stats"
AuthUserFile "/home/httpd/somedomain.com/__dirprotect/__stats"
require valid-user
</Location>
</VirtualHost>
### end - web of 'somedomain.com' - do not remove/modify this line