Skip to content

Instantly share code, notes, and snippets.

@amacgregor
Created April 18, 2014 15:25
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 amacgregor/11049832 to your computer and use it in GitHub Desktop.
Save amacgregor/11049832 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName test.mydomain.com
DocumentRoot /srv/www/test.mydomain.com/public_html
<Directory "/srv/www/cgi-bin/php-cgi-5.3.28">
Require all granted
Allow from all
</Directory>
<Directory "/cgi-bin-php/php-cgi-5.3.28">
Require all granted
Allow from all
</Directory>
<Directory "/srv/www/cgi-bin">
Require all granted
Allow from all
</Directory>
<Directory "/srv/www/test.mydomain.com/public_html">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
AddHandler php-cgi .php
Action php-cgi /cgi-bin-php/php-cgi-5.3.28
<FilesMatch "\.php$">
Options Indexes FollowSymLinks Includes ExecCGI
SetHandler php-cgi
</FilesMatch>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment