two folders two domains one website
October 1, 2008 9:58 AM
Subscribe
Two domain names loading the same website - only the websites aren't being served from the same folder, despite the fact that they are served from the same server. There exist two folders: users on a Unix machine. How can I get both domain names to serve up the website from the same folder? And is there any reason I should NOT do this?
I don't think there's a webmin...
Thanks!
posted by dance to computers & internet (6 comments total)
You just need one [Name]VirtualHost with multiple ServerNames in your Apache conf (or to forgo VirtualHosts entirely if these are the only two domains being served from this machine). Assuming you're running Apache. It sounds like currently you have two [Name]VirtualHosts with different DocumentRoots. But it's difficult to say exactly what you need to change without much more detail as to your current configuration.
posted by enn at 10:22 AM on October 1, 2008