Want to subscribe to topics you're interested in?
Become a Member

How access web without domain ?

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

  1. nVidian

    nVidian Member

    98
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    1:03 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

    55,158
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    4:03 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

    98
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    1:03 AM
    1.7.9
    5.5
    Thank you