I would like to setup a php server using wamp on a LAN to serve all computers directly via the LAN (high speed), and a separate url to serve clients outside the network.

How do I do this? I thought I'd start by setting up for the LAN, but that hasn't worked either:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "c:/wamp/www"
    ServerName url.pews.info
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common
</VirtualHost>

and

hosts file:

127.0.0.1 url.pews.info

and try and access it from computers on the lan using

http://url.pews.info

How do I acomplish what I want to do? I am using Windows vista.

Thank you for your time.

Kind regards,
Marius

link|improve this question
feedback

1 Answer

This won't automatically make it available to the web. You'll either (a) have to make a similar change to the Windows version of the hosts file, telling your computer that the URL is associated with the IP of the server, or (b) invest in setting up some sort of DNS.

Andrew

link|improve this answer
Option B being obviously much much better :) – Antoine Benkemoun Nov 11 '10 at 23:31
feedback

Your Answer

 
or
required, but never shown