download php apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a php script in my DocumentRoot.

When i visit "www.example.com" my site works fine.  However, if i visit "http://example.com" it get a download dialog, asking me if i want to download this php, instead.

Obviously i don't want this - i just want the site to behave as it does when i use "www".

Here is my VirtualHost directive:

<VirtualHost 192.168.1.68:80>
        ServerName www.example.com
        ServerAdmin sam.wootton@xxxxxxxxx
        DocumentRoot /Users/snapple/Sites/www.example.com/www
        <Directory "/Users/snapple/Sites/www.example.com/www/">
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny
                Allow from all
        </Directory>
        <IfModule mod_rewrite.c>
                RewriteEngine On
                RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
                RewriteCond %{HTTP_HOST} !^$
                RewriteRule ^/(.*) http://www.example.com/$1 [L,R]
        </IfModule>
</VirtualHost>


Any ideas?

Thanks in davance for any help.

Regards, Sam

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux