Apache: Setting up local test server with subdomains
Posted
by RC
on Server Fault
See other posts from Server Fault
or by RC
Published on 2010-04-19T22:36:10Z
Indexed on
2010/04/19
22:43 UTC
Read the original article
Hit count: 203
apache
Hi everyone,
I have XAMPP running on my desktop machine, and I do all my work on it with no issue.
http://localhost ---> points to public_html
http://site1.localhost ---> points to site 1
http://site2.localhost ---> points to site 2
http://site3.localhost ---> points to site 3
Entering the above URLs in my web browser on the machine with Apache works great, and I can work on multiple sites within distinct subdomains.
But what I want to do now is to transfer Apache and all the files to another Windows 7 machine within the LAN, but still be able to view the subdomains from my main development machine.
With a vanilla XAMPP installation on the new hosting machine, entering the IP address of that machine (e.g. 192.168.1.10) into my development computer would send me to the main public_html folder.
But how do I set up subdomains such that I can access it externally? For example, http://site1.devmachine
Thanks for any help.
© Server Fault or respective owner