View Single Post

  #1 (permalink)  
Old 08-28-2007
w33bster@googlemail.com
 
Posts: n/a
Default apache virtual hosts (windows)

Hi,

I've looked all over these groups and my head now hurts...I'm sure
this has been answered loads but I need it explained in an easy to
follow manner.

I've got apache 2 running on port 8080 (IIS is using 80)
I've set up my virtual hosts as follows

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"
ServerName localhost
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs
\mywebsite"
ServerName mywebsite.local
</VirtualHost>

My Hosts file contains:

127.0.0.1 localhost
127.0.0.1 mywebsite.local

So I can access http://mywebsite.local:8080 on the same machine as the
webserver but how do I access it from a different machine on the same
network?

And...can I make the url just got straight to the right port without
the 8080?

And......is there a better way of setting up my virtual hosts?

Thanks in advance for any help.