|
Posted by Stan McCann on 11/23/05 21:44
"bizt" <bissatch@yahoo.co.uk> wrote in
news:1132750126.781719.40630@g43g2000cwa.googlegroups.com:
> Hi,
>
> My knowledge of apache is nothing impressive,. I purely use it to
> run local websites. I was wondering however, if it is possible to
> create more local domains like localhost. I like my local websites
> to be able to run in a simulated environment as my remote host. This
> would maybe run like http://localhost, http://localhost2,
> http://localhost3 ...
>
> Can it be done? Btw, Im running apache on Windows.
Just add the domain names you wish to use in your hosts file
(\windows\system32\drivers\etc IIRC), then comes the tricky part if
you want to use more than one simultaneously. Study up on virtual
hosting for apache. It will allow you to run more than one
site(domain name) from the same server.
I serve 5 sites (stanmccann.us in my sig is just one of them) from my
little Linux box at home, then I also have test.org available to all
machines on my LAN. An added benefit of this method is I *can* access
test.org from anywhere by setting it in the local hosts file.
--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.
[Back to original message]
|