Skip to content

Instantly share code, notes, and snippets.

@chanmix51
Created April 4, 2011 09:15
Show Gist options
  • Save chanmix51/901337 to your computer and use it in GitHub Desktop.
Save chanmix51/901337 to your computer and use it in GitHub Desktop.
VirtualHost configuration to use php4 and php5
ScriptAlias /php4/ /home/developpeur/src/php4/bin/
<Directory /home/developpeur/src/php4/bin>
AllowOverride None
Options none
Order allow,deny
Allow from all
</Directory>
ScriptAlias /php5/ /home/developpeur/src/php5/bin/
<Directory /home/developpeur/src/php5/bin>
AllowOverride None
Options none
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/dev/fisher/new>
AddType application/x-httpd-php5 .php .php5
Action application/x-httpd-php5 "/php5/php-cgi"
</Directory>
<Directory /var/www/dev/fisher/old>
AddType application/x-httpd-php4 .php .php4
Action application/x-httpd-php4 "/php4/php"
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment