Plesk Virtual Host & PHP

Hi

I have got a server running plesk. I want to be able to few my sites before the domain propagates by using "ip/~username".

I setup a virtual host in my httpd.conf with the following -

<VirtualHost "MY IP":80>
ServerName default
UseCanonicalName Off
DocumentRoot /home/www/vhosts/default/htdocs
ScriptAlias /cgi-bin/ "/home/www/vhosts/default/cgi-bin/"
<IfModule mod_userdir.c>
UserDir enable *
UserDir httpdocs
</IfModule>
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>

<Directory /home/www/vhosts>
<IfModule sapi_apache2.c>
php_admin_flag engine on
</IfModule>
Options +Includes +ExecCGI
</Directory>

<Directory "/home/www/vhosts/default/cgi-bin/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

It all works fine but it will not parse PHP files, IE just tries to download them which is obviously a big security risk.

Can anyone point me in the right direction?

 

 

 

 

Top