Skip to content

Instantly share code, notes, and snippets.

Created February 28, 2014 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/9266352 to your computer and use it in GitHub Desktop.
Save anonymous/9266352 to your computer and use it in GitHub Desktop.
<Virtualhost *:80>
ServerName www.test.com
DocumentRoot "/var/www/www_test_com"
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/test-access.log combined
ErrorLog ${APACHE_LOG_DIR}/test-error.log
ScriptAlias /php-fcgi/ /var/www/cgi-bin/
<Directory "/var/www/www_test_com">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /php-fcgi/php-cgi-5.2.14
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<virtualhost *:443>
ServerAdmin webmaster@localhost
ServerName www.test.com
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
DocumentRoot "/var/www/www_test_com"
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
CustomLog ${APACHE_LOG_DIR}/test-access.log combined
ErrorLog ${APACHE_LOG_DIR}/test-error.log
ScriptAlias /php-fcgi/ /var/www/cgi-bin/
<directory "/var/www/www_test_com">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /php-fcgi/php-cgi-5.2.14
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</directory>
ServerSignature On
</virtualhost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment