Want more timely Centmin Mod News Updates?
Become a Member

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:
    12:20 PM
    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

    30,163
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    3:20 PM
    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:
    12:20 PM
    1.7.9
    5.5
    Thank you