Code:
# 'hosts' file configuration.
127.0.0.1 server1.mydomain.com.local localhost
188.4X.1X8.110 server1.mmydomain.com server1
::ffff:188.4X.1X8.110 server1.mydomain.com server1
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Code:
# httpd Data BEGIN.
#
# wget-hack prevention
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>
#
# Log processing
#
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" ispcplog
CustomLog "|/var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "|/var/www/ispcp/engine/ispcp-apache-logger -t error"
#
# mod_cband configuration
#
<IfModule mod_cband.c>
CBandScoreFlushPeriod 10
CBandRandomPulse On
</IfModule>
#
# let the customer decide what charset he likes to use
#
AddDefaultCharset Off
#
# Access for errors directory
#
<Directory /var/www/virtual/*/errors>
Order allow,deny
Allow from all
</Directory>
#
# Header End
#
# httpd [188.40.178.110] virtual host entry BEGIN.
NameVirtualHost 188.40.178.110:80
# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [mmm.com] dmn group entry BEGIN.
<IfModule mod_cband.c>
<CBandUser mmm.com>
# CBandUserLimit 0Mi
# CBandUserScoreboard /var/www/scoreboards/mmm.com
# CBandUserPeriod 4W
# CBandUserPeriodSlice 1W
# CBandUserExceededURL http://admin.server1.zone54.com/errors/bw_exceeded.html
</CBandUser>
</IfModule>
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [mmm.com] dmn entry BEGIN.
<VirtualHost 188.40.178.110:80>
<IfModule suexec_module>
SuexecUserGroup vu2007 vu2007
</IfModule>
ServerAdmin webmaster@mmm.com
DocumentRoot /var/www/virtual/mmm.com/htdocs
ServerName mmm.com
ServerAlias www.mmm.com mmm.com vu2007.admin.server1.zone54.com
Alias /errors /var/www/virtual/mmm.com/errors/
RedirectMatch permanent ^/ftp[\/]?$ http://admin.server1.zone54.com/ftp/
RedirectMatch permanent ^/pma[\/]?$ http://admin.server1.zone54.com/pma/
RedirectMatch permanent ^/webmail[\/]?$ http://admin.server1.zone54.com/webmail/
RedirectMatch permanent ^/ispcp[\/]?$ http://admin.server1.zone54.com/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser mmm.com
</IfModule>
# httpd awstats support BEGIN.
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /stats http://localhost/stats/mmm.com
ProxyPassReverse /stats http://localhost/stats/mmm.com
<Location /stats>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=mmm.com&$3 [NC,L]
</IfModule>
AuthType Basic
AuthName "Statistics for domain mmm.com"
AuthUserFile /var/www/virtual/mmm.com/.htpasswd
AuthGroupFile /var/www/virtual/mmm.com/.htgroup
Require group statistics
</Location>
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
# httpd dmn entry cgi support END.
<Directory /var/www/virtual/mmm.com/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/mmm.com/:/var/www/virtual/mmm.com/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/mmm.com/phptmp/"
php_admin_value session.save_path "/var/www/virtual/mmm.com/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2007 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/mmm.com/
<Directory "/var/www/fcgi/mmm.com">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/mmm.com/htdocs>
FCGIWrapper /var/www/fcgi/mmm.com/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/mmm.com">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd dmn entry PHP2 support END.
Include /etc/apache2/ispcp/mmm.com.conf
</VirtualHost>
# httpd [mmm.com] dmn entry END.
# httpd [mmm.com] dmn group entry END.
# httpd [zone54.com] dmn group entry BEGIN.
<IfModule mod_cband.c>
<CBandUser zone54.com>
# CBandUserLimit 0Mi
# CBandUserScoreboard /var/www/scoreboards/zone54.com
# CBandUserPeriod 4W
# CBandUserPeriodSlice 1W
# CBandUserExceededURL http://admin.server1.zone54.com/errors/bw_exceeded.html
</CBandUser>
</IfModule>
# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.
# httpd [zone54.com] dmn entry BEGIN.
<VirtualHost 188.40.178.110:80>
<IfModule suexec_module>
SuexecUserGroup vu2001 vu2001
</IfModule>
ServerAdmin webmaster@zone54.com
DocumentRoot /var/www/virtual/zone54.com/htdocs
ServerName zone54.com
ServerAlias www.zone54.com zone54.com vu2001.admin.server1.zone54.com
Alias /errors /var/www/virtual/zone54.com/errors/
RedirectMatch permanent ^/ftp[\/]?$ http://admin.server1.zone54.com/ftp/
RedirectMatch permanent ^/pma[\/]?$ http://admin.server1.zone54.com/pma/
RedirectMatch permanent ^/webmail[\/]?$ http://admin.server1.zone54.com/webmail/
RedirectMatch permanent ^/ispcp[\/]?$ http://admin.server1.zone54.com/
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html
<IfModule mod_cband.c>
CBandUser zone54.com
</IfModule>
# httpd awstats support BEGIN.
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /stats http://localhost/stats/zone54.com
ProxyPassReverse /stats http://localhost/stats/zone54.com
<Location /stats>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=zone54.com&$3 [NC,L]
</IfModule>
AuthType Basic
AuthName "Statistics for domain zone54.com"
AuthUserFile /var/www/virtual/zone54.com/.htpasswd
AuthGroupFile /var/www/virtual/zone54.com/.htgroup
Require group statistics
</Location>
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
# httpd dmn entry cgi support END.
<Directory /var/www/virtual/zone54.com/htdocs>
# httpd dmn entry PHP support BEGIN.
# httpd dmn entry PHP support END.
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry PHP2 support BEGIN.
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/virtual/zone54.com/:/var/www/virtual/zone54.com/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/zone54.com/phptmp/"
php_admin_value session.save_path "/var/www/virtual/zone54.com/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/zone54.com/
<Directory "/var/www/fcgi/zone54.com">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/zone54.com/htdocs>
FCGIWrapper /var/www/fcgi/zone54.com/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/zone54.com">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
# httpd dmn entry PHP2 support END.
Include /etc/apache2/ispcp/zone54.com.conf
</VirtualHost>
# httpd [zone54.com] dmn entry END.
# httpd [zone54.com] dmn group entry END.
# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.
# httpd [188.40.178.110] virtual host entry END.
# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.
# httpd Data END.