You are not logged in.
I have tried to find out how to serve a handful of sites on my local net (for design & testing etc.). I want to serve them on local arch server (http://server) and use a few clients on the local net to access them. I have set them up successfully using default apache etc, but can't figure out how to serve multiple sites and call them from the local client machines. Everything describes using http://example.com and I only want local. I will ftp to remote host.
If I set up VirtualHosts correctly, how do I call it from local client browser? http://server/site1 and http://server/site2 ? Or would it be http://site1 and http://site2 ? Either would be great for what I want, but I seem to be hunting in vain for documentation on how to do that for local only setup.
Would I need to set client machine /etc/hosts per site or just add server hostname?
I have a Cisco linsys serving out local static ips and connecting to the internet.
Any guidance?
I really appreciate what the developers at Arch have done. I have learned a lot and I have a very nice system thanks to your hard work. Thank you. I hope someday to be of use to your project.
Offline
Offline
If I set up VirtualHosts correctly, how do I call it from local client browser? http://server/site1 and http://server/site2 ? Or would it be http://site1 and http://site2 ?
By definition, VirtualHosts would be http://example1.com and http://example2.com
Would I need to set client machine /etc/hosts per site or just add server hostname?
If you are doing VirtualHosts, then you would either need an internal DNS server and zone (eg, zone dev.internal and hostnames "site1.dev.internal" and "site2.dev.internal"), or add your hostnames (xxx.dev.internal) to /etc/hosts on all the clients.
I have a Cisco linsys serving out local static ips and connecting to the internet.
If you setup internal DNS, you will have to update it to hand out the IP Address of the DNS server to your clients.
EDIT: In summary, I'd recommend the different ports solution as previously suggested.
Last edited by fukawi2 (2011-02-28 22:02:51)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
So, do I use VirtualHost and change the port and DocumentRoot directives per site?
Offline
So, do I use VirtualHost and change the port and DocumentRoot directives per site? I'm google-ing now, but don't seem to be using good keywords.
Offline
This should be what you need:
http://apache.devquickref.com/apache-se … pache.html
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Unfortunately, I don't really understand how to do that. I've googled, but...
What about user dirs? Can that be set up to serve multiple sites, or just one per user? Right now I'm just linking Document Root to site directories one at a time until I can wrap my head around this.
In the end I want to learn all about doing this the DNS way as explained above as that seems like the right thing to do, in the end.
Offline
You need to give us more information... Make sure you've read the forum guidelines, and this page.
When asking questions, provide as much information as possible, including error messages, terminal output, logs, what you have previously tried, what documentation and searches you have attempted, and related configuration files. Read How To Ask Questions The Smart Way for more helpful advice.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Right, I'm sorry, I'm saying I'm off to read the manual some more, as I don't yet understand DNS but need to.
Thank you very much though.
Last edited by steelbak (2011-03-03 11:43:33)
Offline