Join the community today
Register Now

How access web without domain ?

Discussion in 'System Administration' started by nVidian, Mar 18, 2015.

  1. nVidian

    nVidian Member

    85
    8
    8
    Mar 16, 2015
    Ratings:
    +23
    Local Time:
    5:08 AM
    1.7.9
    5.5
    Hi, I'm curious how to access website without domain ? Its very useful to test site before pointing DNS to new server.
    I can see its already a default vhost and directory called 'demodomain.com' but have no idea how to access it.
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    8:08 AM
    Nginx 1.13.x
    MariaDB 5.5
    edit server's /etc/hosts and your local pc, windows hosts file i.e. C:\Windows\System32\drivers\etc\hosts
    Code:
    ipaddress hostname.domain.com domain.com
    
    but be sure to comment out or remove entries after testing :)
     
    • Like Like x 1
  3. nVidian

    nVidian Member

    85
    8
    8
    Mar 16, 2015
    Ratings:
    +23
    Local Time:
    5:08 AM
    1.7.9
    5.5
    Thank you