envy Posted September 9, 2007 Report Share Posted September 9, 2007 Hi. i have a problem with links of my website since i've made changes to virtual host on apache conf file.i've managed to make the www.mydomain.ro work but not all the links return this message : Not Found The requested URL /pages/Abonament.html was not found on this server.Apache/2.0.59 (Win32) DAV/2 PHP/5.2.3 Server at www.mydomain.ro Port 80 httpd.conf --> #MYDOMAIN<VirtualHost *>ServerName mydomain.roDocumentRoot /www/myfolder</VirtualHost> my website is in the myfolder folder. Any way to solve this problem ? Quote Link to comment Share on other sites More sharing options...
Ric Posted September 9, 2007 Report Share Posted September 9, 2007 Your Vhost looks OK if I type this into a browser: http://mydomain.ro I will see your index page (served from folder www/myfolder) However if I type this into my browser:http://www.mydomain.ro There is no matching Vhost (ServerName) for www.mydomain.roHence it cannot be found and Apache will server pages from the first site listed in the Vhost section. However that is not consistent with the error message! Take a look at this page http://center.uniformserver.com/u35_mod_ss...nfig_httpd.htmlAt the bottom of this page you are interested in the new column it gives the structure how Vhost are layed out the :80 are not required for your implementation. You can have more that one Vhost pointing to the same root folder for example: ServerName mydomain.roDocumentRoot /www/myfolder ServerName www.mydomain.roDocumentRoot /www/myfolder Not sure if that helps All the bestRic Quote Link to comment Share on other sites More sharing options...
envy Posted September 10, 2007 Author Report Share Posted September 10, 2007 Thanks for your answer Ric. I've tried your solution but it doesn't work. maybe it's the cms script. it uses a mysql database and all the links and pages are saved to that database. when i'm working with localhost it works but when i change to mydomain.ro only the main paige works and the links to the pages show the error message i've posted earlier. Quote Link to comment Share on other sites More sharing options...
Ric Posted September 10, 2007 Report Share Posted September 10, 2007 I think what may be required is an entry in your hosts file, Open the file hosts located in folder: C:\WINDOWS\system32\drivers\etc Add a line similar to this 127.0.0.1 www.mydomain.ro All the bestRic Quote Link to comment Share on other sites More sharing options...
envy Posted September 12, 2007 Author Report Share Posted September 12, 2007 Thanks again Rick. already tried it but still the same problem. still trying but i think i'm running out of ideas. 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.