How to View Your Site Using Temp URL or IP Address With Nginx Server?

How to View Your Site Using Temp URL or IP Address With Nginx Server?

UserDir linking before your DNS has propagated for your domain is not supported on a nginx webserver, your sites are directly served by nginx meaning apache mod_userdir isn’t available for creating or viewing your domain, using http://104.151.25.154/~username/index.php to view your site for example would show an internal server error because Nginx doesn’t know how to handle the request.

The recommended method to access a website without DNS resolving to the server is by editing the ‘hosts’ file on the users workstation, i.e. your PC.

http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/ – gives a great head start on how to do it on most operating systems .

Leave a Reply

Your email address will not be published. Required fields are marked *