Learn about Centmin Mod LEMP Stack today
Register Now

How access web without domain ?

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

  1. nVidian

    nVidian Member

    97
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    6:17 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

    53,865
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    9:17 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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 :)
     
  3. nVidian

    nVidian Member

    97
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    6:17 AM
    1.7.9
    5.5
    Thank you