Browsing pages locally

Discussion in 'Installation/Configuration' started by sweetz, Jan 11, 2008.

  1. sweetz

    sweetz New Member

    Is there a way to browse the page uploaded locally for verifying data?
    (sommething like http://123.456.789:80/web123/web/index.html)
    I mention that the domain is pointing somewhere else now.
    I need to enter (client mode) to check if the site is up-loaded ok before i change the ns.
     
    Last edited: Jan 11, 2008
  2. edge

    edge Active Member Moderator

    No it can not be done that way.
    You could add the domain in question to the "clients" HOSTS file, and see it in action.
    In Windows the HOSTS file is located in c:\windows\system32\drivers\etc
    Add the domain like this:
    123.456.789 the_domain_name.tld

    (the IP being the one from the server running the site. The the_domain_name.tld should be the domainname of the site)

    Make sure that you restart the browser to load the new hosts file.
     
  3. sweetz

    sweetz New Member

    It's working like a charm
    Thank you very much!
    the only thing that in host file i needed to put the domain with www in front.
    Like this: 123.456.789 www.domain_name.tld
     
    Last edited: Jan 11, 2008
  4. edge

    edge Active Member Moderator

    That is correct.
    If you want to access the site with www in front, you will need to add the www part.

    One small thing.. Do not forget to remove the entry again from the hosts file when you have moved the site :)
     
  5. nzimas

    nzimas Member

    And how would the temporary testing url look like?

    Nuno.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    If you have
    Code:
    123.456.789 www.domain_name.tld
    in the hosts file, then the URL is www.domain_name.tld.
     
  7. nzimas

    nzimas Member

    Errr... This is not exactly what i want.
    A domain name can't be made up.
    My aim is to test a new site *without having any domain pointing to the shared public IP* where ISPConfig runs.

    In most shared hosting providers, this would look like http://123.456.78.9/~newsite

    Think the best workaround might be a provisional subdomain pointing from no-ip.com or any similar provider.

    Nuno.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    You can make up a domain name, e.g. test.tld. You create a web site www.test.tld in ISPConfig and then place www.test.tld in your hosts file.
     
  9. nzimas

    nzimas Member

    I get your point.
    Thing is that the server in question is remote :)
    I do not access it locally, but through a public IP.

    Nuno.
     
  10. edge

    edge Active Member Moderator

    Still the same...
     
  11. nzimas

    nzimas Member

    That's weird...
    What if i use www.google.com in my hosts file??

    Nuno.
     
  12. edge

    edge Active Member Moderator

    Try this as a test (make sure that you restart your browser after making the change to make it read the new hosts file)

    Open the hosts file on the system that you are using to browse with.
    For a Windows OS the hosts file can be found in windows\system32\drivers\etc

    Add exactly the following to it:
    Code:
    78.47.159.34	www.thisisatest.tld
    
    Now enter as URL (make sure you restart the browser!): www.thisisatest.tld
    The result should be you going to www.howtoforge.com

    The domain thisisatest.tld could obviously be anything you like :)
    The IP shown is the one from the howtoforge.com server.
     
    Last edited: Feb 23, 2008

Share This Page