Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat sub.domain.com.conf
- <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>
- $ cat conf.d/php.conf
- #
- # PHP is an HTML-embedded scripting language which attempts to make it
- # easy for developers to write dynamically generated webpages.
- #
- <IfModule prefork.c>
- LoadModule php5_module modules/libphp5.so
- </IfModule>
- <IfModule worker.c>
- LoadModule php5_module modules/libphp5-zts.so
- </IfModule>
- #
- # Cause the PHP interpreter to handle files with a .php extension.
- #
- AddHandler php5-script .php
- AddType text/html .php
- #
- # Add index.php to the list of files that will be served as directory
- # indexes.
- #
- DirectoryIndex index.php
- #
- # Uncomment the following line to allow PHP to pretty-print .phps
- # files as PHP source code:
- #
- #AddType application/x-httpd-php-source .phps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement