View Single Post
  #12  
Old 23rd August 2010, 17:23
stolenpants stolenpants is offline
Junior Member
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's the vhost

Quote:
<Directory /var/www/mysite.org>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost 216.246.97.107:80>
DocumentRoot /var/www/mysite.org/web

ServerName mysite.org
ServerAlias www.mysite.org
ServerAdmin webmaster@mysite.org

ErrorLog /var/log/ispconfig/httpd/mysite.org/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

<Directory /var/www/mysite.org/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client0/web1/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>

# cgi enabled
<Directory /var/www/clients/client0/web1/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client0/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# suexec enabled
SuexecUserGroup web1 client0
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@mysite.org"
php_admin_value upload_tmp_dir /var/www/clients/client0/web1/tmp
php_admin_value session.save_path /var/www/clients/client0/web1/tmp
#php_admin_value open_basedir /var/www/clients/client0/web1:/usr/share/php5


</VirtualHost>



<IfModule mod_ssl.c>
################################################## #########
# SSL Vhost
################################################## #########

<VirtualHost 216.246.97.107:443>
DocumentRoot /var/www/mysite.org/web

ServerName mysite.org
ServerAlias www.mysite.org
ServerAdmin webmaster@mysite.org

ErrorLog /var/log/ispconfig/httpd/mysite.org/error.log

ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 503 /error/503.html

SSLEngine on
SSLCertificateFile /var/www/clients/client0/web1/ssl/mysite.org.crt
SSLCertificateKeyFile /var/www/clients/client0/web1/ssl/mysite.org.key

<Directory /var/www/mysite.org/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client0/web1/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>

# cgi enabled
<Directory /var/www/clients/client0/web1/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client0/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
# suexec enabled
SuexecUserGroup web1 client0
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@mysite.org"
php_admin_value upload_tmp_dir /var/www/clients/client0/web1/tmp
php_admin_value session.save_path /var/www/clients/client0/web1/tmp
#php_admin_value open_basedir /var/www/clients/client0/web1:/usr/share/php5


</VirtualHost>
</IfModule>
Reply With Quote