dustinnoe Posted May 12, 2008 Share Posted May 12, 2008 I am having issues with VirtualHost. I cannot seem to get ServerAlias to work properly. Here are my settings: <VirtualHost ipaddress> ServerName www.dustinnoe.com ServerAlias www.dustinnoe.com dustinnoe.com DocumentRoot path/to/pages </VirtualHost> These settings will display the page when the url dustinnoe.com is used bt not when www.dustinnoe.com is used. If I remove the ServerAlias all together it displays using www.dustinnoe.com Quote Link to comment Share on other sites More sharing options...
trq Posted May 12, 2008 Share Posted May 12, 2008 I'm not sure your alowed to have ServerAlias and ServerName set to the same thing. <VirtualHost ipaddress> ServerName www.dustinnoe.com ServerAlias dustinnoe.com DocumentRoot path/to/pages </VirtualHost> Should suffice. Quote Link to comment Share on other sites More sharing options...
dustinnoe Posted May 12, 2008 Author Share Posted May 12, 2008 With those settings I can only see dustinnoe.com and not www.dustinnoe.com I am totally confused. Quote Link to comment Share on other sites More sharing options...
trq Posted May 12, 2008 Share Posted May 12, 2008 There is nothing wrong with the apache configuration, are you sure your DNS is setup to accept both? Quote Link to comment Share on other sites More sharing options...
dustinnoe Posted May 12, 2008 Author Share Posted May 12, 2008 How do you configure the DNS to accept both? Quote Link to comment Share on other sites More sharing options...
dustinnoe Posted May 12, 2008 Author Share Posted May 12, 2008 OK, I learned all about zone settings using BIND but I'm still in a bind. It seems that when I transfered multiple hosting accounts into one VPS something went haywire. The 'www' sub-domain does not work for any of those sites. The zones settings are correct. On the flip side, all the sites I have setup since the transfer using WHM are working properly. Is there another file in BIND that needs to be edited. I'm learning a lot from this but it is a bit frustrating. Quote Link to comment Share on other sites More sharing options...
dustinnoe Posted May 12, 2008 Author Share Posted May 12, 2008 Once again I have solved it myself, although my hats off to thorpe for pointing me in right direction. I believe writing things here helps me sort my thoughts and actions. Anyway, the nameservers were incorrect during the transfer. I discovered this by comparing zone settings from transfered sites to the zones settings for newly created sites. A quick update to the namesever and now I'm good to go. It only took me a night and a morning and I'm just a little smarter now. Quote Link to comment Share on other sites More sharing options...
xqwertyx Posted May 23, 2008 Share Posted May 23, 2008 this is i think similar to mine I have 2 machines 1 server, 1 workstations and a DNS(www.sigenaulit.com) who is pointing to server 1. machine 1 : www.walangalam.com machine 2 IP: 192.168.0.2 using reverseproxy i have the www.walangalam.com/yw working with a (www.walangalam.com apache)config of: ProxyPass /yw http://192.168.0.2/yw ProxyPassReverse /yw http://192.168.0.2/yw My problem now is how can I publish http://192.168.0.2/yw from www.sigenaulit.com? I tried a lot of format in <VirtualHost> but it seems that i can't find threads to solve the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.