View Single Post
  #19  
Old 25th May 2008, 19:08
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 188
Thanks: 59
Thanked 9 Times in 9 Posts
Default

This is the /etc/httpd/conf/vhosts/Vhosts_ispconfig.com for that website



Code:
######################################
# Vhost: www.domain.com:80
######################################
#
#
<VirtualHost xx.xxx.xxx.xx:80>
SuexecUserGroup web6_domain web6
ServerName www.domain.com:80
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/web6/web
ServerAlias webmail.domain.com domain.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
Alias  /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
<Directory /var/www/web6/web>
  suPHP_Engine on
  suPHP_UserGroup web6_admin web6
  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php
</Directory>
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\.domain\.com [NC]
RewriteRule ^/(.*)         http://www.domain.com:81/roundcubemail/$1 [L,R]
</VirtualHost>
#
Reply With Quote