|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
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. |
#2
| |||
| |||
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 ). |
#3
| |||
| |||
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. |
#4
| |||
| |||
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. |
![]() |
|
Tags: apache, apache changing localhost, htdocs, localhost |
Thread Tools | Search this Thread |
|
![]() | ||||
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 |