sw Posted August 17, 2008 Share Posted August 17, 2008 Hi I run an Apache Server on Windows XP Home. I have my domain name and have forwarded to my static IP address however the url is coming up as my IP address instead of my domain name. I've checked and double checked all the web forwarding and its all correct. Is there anything I can do in Apache to ensure the domain name appears instead of the IP address. Currently showing e.g. http://123.456.789.4/news.php and I'd like it so show e.g. http://www.mysite.co.uk/news.php Any ideas ? Cheers SW Quote Link to comment Share on other sites More sharing options...
trq Posted August 18, 2008 Share Posted August 18, 2008 If you access your site via a domain it should stay that way. You'll need to give us some details about how exactly you have set this up. Quote Link to comment Share on other sites More sharing options...
sw Posted August 18, 2008 Author Share Posted August 18, 2008 DNS Check Result Domain name scotweather.co.uk IP Address (A-Record) 82.165.218.111 Name server 1 ns59.1and1.co.uk Name server 2 ns60.1and1.co.uk Mail server 1 mx01.1and1.co.uk, 10 Mail server 2 mx00.1and1.co.uk, 10 http forward to www.scotweather.co.uk You see it forwarding to www.scotweather.co.uk but then as soon as it hits my server it changes to the IP address so something in the configuration is incorrect but I don't know where to look as I don't usually play around with the server configs. I used to have dyndns and it resolved perfectly with the correct urls but since leaving DynDNS it won't keep the www.scotweather.co.uk and resolves to the IP address. Is there any config files you need to look at ? I'd be happy to supply if I knew which ones. Your help is most appreciated. Quote Link to comment Share on other sites More sharing options...
sw Posted August 19, 2008 Author Share Posted August 19, 2008 Hi I have resolved this problem however I have two domain names which are setup as a frame forward i.e. the URL remains in the search bar. The redirects are correctly setup however IF I specify a different folder from the root folder (htdocs) e.g. http://mydomain.com/folder/index.php the server sends the request to the root folder again and doesn't go to the subfolder. Could someone please advise me how to forward a domain name to a specific folder via the server? many thanks Quote Link to comment Share on other sites More sharing options...
corbin Posted August 19, 2008 Share Posted August 19, 2008 Setting the DocumentRoot? Or did I misinterpret the question? 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.