RE: [users@httpd] PHP file not found.

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

 



By way of reply, I have installed the UseCanonicalName directive, and set it to on, but the system still cannot find the site which I have defined inside of hosts on the client as simply “php

 

The server still responds with a global lookup.

 

My vhosts-conf file looks like this:

 

NameVirtualHost 192.168.1.4:80

 

<VirtualHost *:80>

    ServerName www.niknet.homeip.net

    ServerAdmin nick.kirby@xxxxxxxxxx  

    DocumentRoot "C:/WWW/niknet"

    #ErrorLog C:/WWW/niknet/logs/error.log

    #CustomLog C:/WWW/niknet/logs/access.log combined

</VirtualHost>

 

<VirtualHost *:80>

    ServerName php

    ServerAdmin bob.kirby@xxxxxxxxxx 

    DocumentRoot "C:/WWW/php"

</VirtualHost>

 

Apologies for the subject – it was 2am and I wasn’t really awake. However it is pertinent – the site cannot be found locally.

 


From: Nick [mailto:nick.kirby@xxxxxxxxxx]
Sent: 19 February 2006 02:08
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] PHP file not found.

 

Hello there, I am using xampp with Apache 2.20 to test my site hosting. The system is hosted on a virtual PC – yes, I know. I’m working on it.

 

I have edited my hosts file to point to the virtual machine’s IP address, but the only site, regardless of the URL I type in reverts to the first virtual host.

 

Is there a way of editing vhosts-conf to show the site appropriate to the URL put into the browser?

 

What am I doing wrong here?

 

All help gratefully received.

 

Nick


[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