Web Hosting Talk







View Full Version : new php install... not working, please assist


Christopher
01-12-2002, 07:09 PM
---------------
--------------

Opps, never mind :blush:

I had set the defaults on the virtual sites for php scripting, but had not seperately set the php scripting ok for the 'main' site, and it was the main site I put the script on.

-----------
------------

Juan
01-18-2002, 03:33 PM
See my virtualhost directive for the homesite :

<VirtualHost xxx.xxx.xxx.xxx>
ServerName ns3.plushosting.nl
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^213.196.5.58(:80)?$
RewriteCond %{HTTP_HOST} !^ns3.plushosting.nl(:80)?$
RewriteRule ^/(.*) http://ns3.plushosting.nl/$1 [L,R]
RewriteOptions inherit
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
</VirtualHost>

Add the bold lines to your home directive.