Code:
# httpd [test.com] dmn entry BEGIN.
<VirtualHost 88.190.20.176:80>
<IfModule suexec_module>
SuexecUserGroup vu2002 vu2002
</IfModule>
ServerAdmin webmaster@test.com
DocumentRoot /var/www/virtual/test.com/htdocs
ServerName test.com
ServerAlias www.test.com test.com vu2002.admin.sd-29145.dedibox.fr
Alias /errors /var/www/virtual/test.com/errors/
RedirectMatch permanent ^/ftp[\/]?$ http://admin.sd-29145.dedibox.fr/ftp/
RedirectMatch permanent ^/pma[\/]?$ http://admin.sd-29145.dedibox.fr/pma/
RedirectMatch permanent ^/webmail[\/]?$ http://admin.sd-29145.dedibox.fr/webmail/
RedirectMatch permanent ^/ispcp[\/]?$ http://admin.sd-29145.dedibox.fr/
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 test.com
</IfModule>
# httpd awstats support BEGIN.
# httpd awstats support END.
# httpd dmn entry cgi support BEGIN.
ScriptAlias /cgi-bin/ /var/www/virtual/test.com/cgi-bin/
<Directory /var/www/virtual/test.com/cgi-bin>
AllowOverride AuthConfig
#Options ExecCGI
Order allow,deny
Allow from all
</Directory>
# httpd dmn entry cgi support END.
<Directory /var/www/virtual/test.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/test.com/:/var/www/virtual/test.com/phptmp/:/usr/share/php/"
php_admin_value upload_tmp_dir "/var/www/virtual/test.com/phptmp/"
php_admin_value session.save_path "/var/www/virtual/test.com/phptmp/"
php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2002 -t -i'
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/test.com/
<Directory "/var/www/fcgi/test.com">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fcgid.c>
<Directory /var/www/virtual/test.com/htdocs>
FCGIWrapper /var/www/fcgi/test.com/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/test.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/test.com.conf
</VirtualHost>
# httpd [test.com] dmn entry END.
# httpd [test.com] dmn group entry END.