View Single Post
  #19  
Old 10th September 2011, 22:54
hitri hitri is offline
Member
 
Join Date: Jun 2010
Posts: 33
Thanks: 2
Thanked 4 Times in 4 Posts
Default

vi /etc/apache2/sites-enabled mydomain.si.vhost:

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

<VirtualHost xxx.xxx.xxx.xxx:443>
DocumentRoot /var/www/mydomain.si/web

ServerName www.mydomain.si
ServerAlias www.mydomain.si
ServerAdmin webmaster@mydomain.si

ErrorLog /var/log/ispconfig/httpd/mydomain.si/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/client1/web1/ssl/www.mydomain.si.crt
SSLCertificateKeyFile /var/www/clients/client1/web1/ssl/www.mydomain.si.key

<Directory /var/www/mydomain/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web1/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

# suexec enabled
SuexecUserGroup web1 client1
# Clear PHP settings of this website
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
# php as fast-cgi enabled
<IfModule mod_fcgid.c>
# SocketPath /tmp/fcgid_sock/
# IdleTimeout n (3600 seconds)
# An idle fastcgi application will be terminated after IdleTimeout seconds.
IdleTimeout 3600

# ProcessLifeTime n (7200 seconds)
# A fastcgi application will be terminated if lifetime expired, even no error is detected.
ProcessLifeTime 7200

----

Last edited by hitri; 16th September 2011 at 01:40.
Reply With Quote