Menu

Why redirect to www.localhost.com

Help
2005-03-22
2012-10-11
  • Olivier Sannier

    Olivier Sannier - 2005-03-22

    Hi

    I've installed a phpWiki on an Apache2 server under Win32 on my machine. When I call the first page (http://localhost/) it tries to do the initial setup and once this is done, it redirects to www.localhost.com
    If I call the page using the name of the machine (obones), it redirects to www.obones.com. I tried with the IP, I get a "No Data" error message from my browser.
    What is wrong with my setup ?
    I'm trying to use flat files.
    Thanks for the help

     
    • Reini Urban

      Reini Urban - 2005-03-22

      localhost is not defined in your hosts file
      system32/drivers/etc/
      127.0.0.1 localhost

      so your browser looks for www.localhost.com

       
      • Olivier Sannier

        Olivier Sannier - 2005-03-23

        Nope, localhost definitely is defined in that file.

        Further, when I type http://localhost/ it does open the files on my local machine.
        The problem I'm having is that the PHPWiki redirection at the end of the initialiasation sends "www.localhost.com" and I don't know why.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.