Results 1 to 4 of 4

Thread: Apache changing localhost

  1. #1
    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.

  2. #2
    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 ).

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    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. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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.

Similar Threads

  1. Replies: 4
    Last Post: 05-05-2012, 05:59 PM
  2. Replies: 4
    Last Post: 20-03-2011, 03:37 AM
  3. How to get IP address of localhost in java?
    By MKAIF in forum Software Development
    Replies: 4
    Last Post: 05-02-2010, 10:01 PM
  4. What could localhost connections be
    By Kusagra in forum Networking & Security
    Replies: 3
    Last Post: 08-08-2009, 11:39 AM
  5. Virtual box and localhost
    By stinger in forum Networking & Security
    Replies: 3
    Last Post: 26-03-2009, 02:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,614,052.22247 seconds with 16 queries