-
Apache Web server Help?
Well I couldn't find a forum better than this one to post this on. I can't even find any apache only web forums so I figured I would ask you guys since I'm sure some of you have worked with apache before.
I have apache 2.0 running on a Red Hat Linux 8.1 server box. I want to be able to direct two web address to the box but have them go to different websites (Virtual hosting). I have the domain names and dns all set up but I cannot figure out how to make apache seperate the two web address and send them to the correct folder.
My websites are www.sbmostwanted.com and www.thechosenguild.com If you go to either one of them you will see they go to the same page. But I have what I thought is a virtual host set up for sbmostwanted.com to go to a different folder.
Any help or links to something on how to do this would be greatly appreciated.
-
This is how I would do it.
Now I might mention I've never used Apache before, so this might be totally stupid.
But anyway, I would write a small index.htm page and looks at the current browser address.
If the address is www.sbmostwanted.com then forward the browser to www.sbmostwanted.com/site1
On the other hand, if the current browser address is www.thechosenguild.com then forward the browser to www.thechosenguild.com/site2
Now this could be easily acheived using a piece of javascript.
-
yeah it could be done like that. But I dont want that redirect delay when anyone goes to a site of mine. And plus I just think thats plain out tacky.
Thanks for the idea though. I'm still looking for a way to set it up in apache to do it correctly.. I know it can be done just done know how.