Thread: Test Files
View Single Post
  #41  
Old 25th May 2007, 23:56
astewart astewart is offline
Member
 
Join Date: Feb 2007
Posts: 95
Thanks: 1
Thanked 7 Times in 7 Posts
Exclamation

Here is the vhost configuration for web6 :

Quote:
######################################
# Vhost: www.adamsimac.com:80
######################################
#
#
<VirtualHost 192.168.2.9:80>
SuexecUserGroup web6_astewart web6
ServerName www.adamsimac.com:80
ServerAdmin webmaster@adamsimac.com
DocumentRoot /var/www/web6/web
ServerAlias adamsimac.com webmail.adamsimac.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web6/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail\.adamsimac\.com [NC]
RewriteRule ^/(.*) http://www.adamsimac.com:81/webmail/$1 [L,R]
</VirtualHost>
Reply With Quote
Sponsored Links