aducom Posted January 12, 2012 Report Share Posted January 12, 2012 I created two virtual hosts. Strange thing is that whatever url I type, i get the first defined virtual host. If I go to the server, the same issue persists. But if I go to apanel and click on the virtual host then I do get the right website in the correct directory. I'm sure I have forgotten something, anybody? Quote Best regards,Albert Link to comment Share on other sites More sharing options...
Yoni Posted January 12, 2012 Report Share Posted January 12, 2012 Obviously there is something not properly configured in your apache configuration. What version are you running? Did you enable vhosts in your httpd.conf? Looks to me as if your vhost config file is disabled hence apache defaults back to the default host /www folder in this case. Quote <p class="bbc_center"><span style="font-size:12px;"><strong>Yoni</strong></span></p> Link to comment Share on other sites More sharing options...
aducom Posted January 13, 2012 Author Report Share Posted January 13, 2012 That's a good hint, i'll look it up. It's a standard US installation in august last year, apache 2.x? Quote Best regards,Albert Link to comment Share on other sites More sharing options...
BobS Posted January 13, 2012 Report Share Posted January 13, 2012 The reason Yoni is asking, is that Coral-8.0.0 does a better job of dealing with vhosts. It's a bit clearer and covers all the bases. If you use it, BE SURE to read the associated docs. Regards, BobS Quote Link to comment Share on other sites More sharing options...
aducom Posted January 18, 2012 Author Report Share Posted January 18, 2012 I'm running orion. How do I enable virtual hosts? I have now: NameVirtualHost *:80 ##########VIRTUAL HOST SETUP########### WWW.REKENINGVOORU.NL<VirtualHost *:80>ServerName www.mydomain.nlDocumentRoot C:/aducom/Orion/UniServer/wwwrvu</VirtualHost> #====== DEFAULT VIRTUAL HOST ===========# LOCALHOST<VirtualHost *:80> ServerName localhost:80 DocumentRoot C:/aducom/Orion/UniServer/www </VirtualHost> Quote Best regards,Albert Link to comment Share on other sites More sharing options...
aducom Posted January 18, 2012 Author Report Share Posted January 18, 2012 It's working now. Problem is that I used www and wwwrvu as root directory. As soon as I changed wwwrvu into rvu it simply worked... Got the hint from a collegue, I would never come up with this. Quote Best regards,Albert Link to comment Share on other sites More sharing options...
Yoni Posted January 19, 2012 Report Share Posted January 19, 2012 It's working now. Problem is that I used www and wwwrvu as root directory. As soon as I changed wwwrvu into rvu it simply worked... Got the hint from a collegue, I would never come up with this.Glad you figured it out. There was an issue with the path in the conf file you posted. "DocumentRoot C:/aducom/Orion/UniServer/wwwrvu" wwwrvu was the issue. so you changed it to /rvu and it came up. Of course the folder has to exist in your setup otherwise it will not find it and default back to /www Good job and good luck with your site Happy serving. Quote <p class="bbc_center"><span style="font-size:12px;"><strong>Yoni</strong></span></p> 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.