Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80 *:443>
- ServerName sub.domain.com
- ServerAlias *.domain.com
- ServerAdmin [email protected]
- DocumentRoot "/var/www/sub.domain.com/httpdocs"
- AccessFileName .htaccess
- ErrorDocument 400 /
- ErrorDocument 401 /
- ErrorDocument 403 /
- ErrorDocument 404 /
- ErrorDocument 500 /
- <Directory "/var/www/sub.domain.com/httpdocs">
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- allow from all
- </Directory>
- <IfModule mod_fcgid.c>
- SuexecUserGroup username usergroup
- FcgidIOTimeout 7200
- <Directory "/var/www/sub.domain.com/httpdocs">
- Options +ExecCGI
- AllowOverride All
- AddHandler fcgid-script .php
- FCGIWrapper /var/www/sub.domain.com/php-fcgi-scripts/php-fcgi-starter .php
- Order allow,deny
- Allow from all
- </Directory>
- </IfModule>
- SSLEngine on
- SSLCertificateFile /etc/httpd/ssl/domain.com/domain.com.cert
- SSLCertificateKeyFile /etc/httpd/ssl/domain.com/domain.com.key
- SSLCertificateChainFile /etc/httpd/ssl/domain.com/domain.com.ca-bundle
- ErrorLog logs/sub.domain.com/error.log
- LogLevel warn
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
- LogFormat "%h %l %u %t \"%r\" %>s %b" common
- LogFormat "%{Referer}i -> %U" referer
- LogFormat "%{User-agent}i" agent
- CustomLog logs/sub.domain.com/access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement