Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developing a website that should be used with HTTPS. I am developing the site on my Windows machine and I have a Linux machine on the same LAN where I test my websites. I don't have a DNS-server on the LAN so I use IP-addresses to access the website.

On the server I use Ubuntu Server and Nginx web server. Is there any easy way I can test the HTTPS configuration in my LAN? E.g if I generate a SSL-certificate myself, but I don't have a domain name to set up it with. Any recommendations for testing? Or should I use a subdomain and put an A record to my local IP-adress to the test server E.g.

share|improve this question

migrated from May 11 '11 at 12:22

This question came from our site for pro webmasters.

up vote 1 down vote accepted

Generate a self-signed certificate* for Nginx. Configure Nginx to use it.

Edit the hosts file on your computer, add the domain your testing.
On *nix, it's /etc/hosts in Windows it's %systemroot%\System32\Drivers\Etc\hosts.
Add a line similar to (substitute the domain and your server's IP).

You should now be able to browse out to and see the test page on your server.

*Ignore the part at the end of these directions, it's for Apache only.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.