Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21-09-2009
Member
 
Join Date: Dec 2008
Posts: 74
Apache changing localhost

Currently i'm using apache, in order to test my particular website. I have tested tested my page in the "htdocs" directory in apache, but i would like to test it it by typing in "www.myWebSite.com" in the url instead of going for "localhost". I had even tried to rename "localhost" in the "httpd.conf" file, but found that my apache keep automatically changing the localhost. So, can any body tell me that why does my apache keeps changing localhost? Has anyone had ever face such issue? let me know the correct way of correcting the above error message.
Reply With Quote
  #2  
Old 21-09-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Apache changing localhost

Apache2 gives away a smooth running software to set your localhost. By default Apache's document root is set to htdocs directory. The document root is where you must put all your PHP or HTML files so it will be process by Apache ( and can be seen through a web browser ).
Reply With Quote
  #3  
Old 21-09-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Apache changing localhost

Try to set your Network IP in the server to a static IP like 192.168.1.200. I think your httpd.conf file should be change from "virtualHost" to "VirtualHost". You need to define'localhost" in the named.conf file. You need to be sure that you also have a localhost file in your zone files.
Reply With Quote
  #4  
Old 21-09-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Apache changing localhost

The router must be set to forward port 80 in port forwording at the static IP for the server. The configuration file for Apache is stored in C:\Program Files\Apache Group\Apache2\conf\httpd.conf ( assuming you installed Apache in C:\Program Files\Apache Group ). Access most routers by typing 192.168.1.1 in your browsers address bar to enter setup. Check your user docs for your router.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Apache changing localhost"
Thread Thread Starter Forum Replies Last Post
Installing php-apache on Iomega StorCenter ix2-200 NAS gives error: apache.postinst returned 1 Shoya Networking & Security 4 05-05-2012 05:59 PM
How to connect from localhost->router->Internet->router->localhost Port 3456? Duncan McC Windows XP Support 4 20-03-2011 03:37 AM
How to get IP address of localhost in java? MKAIF Software Development 4 05-02-2010 10:01 PM
What could localhost connections be Kusagra Networking & Security 3 08-08-2009 11:39 AM
Virtual box and localhost stinger Networking & Security 3 26-03-2009 02:10 PM


All times are GMT +5.5. The time now is 09:41 PM.