Advertisement
Guest User

sub.domain.com.conf

a guest
Sep 25th, 2012
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <VirtualHost *:80 *:443>
  2. ServerName sub.domain.com
  3. ServerAlias *.domain.com
  4.  
  5. ServerAdmin [email protected]
  6. DocumentRoot "/var/www/sub.domain.com/httpdocs"
  7. AccessFileName .htaccess
  8. ErrorDocument 400 /
  9. ErrorDocument 401 /
  10. ErrorDocument 403 /
  11. ErrorDocument 404 /
  12. ErrorDocument 500 /
  13.  
  14. <Directory "/var/www/sub.domain.com/httpdocs">
  15. Options -Indexes FollowSymLinks
  16. AllowOverride None
  17. Order allow,deny
  18. allow from all
  19. </Directory>
  20.  
  21. <IfModule mod_fcgid.c>
  22. SuexecUserGroup username usergroup
  23. FcgidIOTimeout 7200
  24. <Directory "/var/www/sub.domain.com/httpdocs">
  25. Options +ExecCGI
  26. AllowOverride All
  27. AddHandler fcgid-script .php
  28. FCGIWrapper /var/www/sub.domain.com/php-fcgi-scripts/php-fcgi-starter .php
  29. Order allow,deny
  30. Allow from all
  31. </Directory>
  32. </IfModule>
  33.  
  34. SSLEngine on
  35. SSLCertificateFile /etc/httpd/ssl/domain.com/domain.com.cert
  36. SSLCertificateKeyFile /etc/httpd/ssl/domain.com/domain.com.key
  37. SSLCertificateChainFile /etc/httpd/ssl/domain.com/domain.com.ca-bundle
  38.  
  39. ErrorLog logs/sub.domain.com/error.log
  40. LogLevel warn
  41. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  42. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  43. LogFormat "%{Referer}i -> %U" referer
  44. LogFormat "%{User-agent}i" agent
  45. CustomLog logs/sub.domain.com/access.log combined
  46. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement