Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 test.example.com and put an A record to my local IP-adress to the test server E.g. 192.168.1.10?

share|improve this question

migrated from webmasters.stackexchange.com May 11 '11 at 12:22

This question came from our site for pro webmasters.

1 Answer 1

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 www.example.com 192.0.2.5 (substitute the domain and your server's IP).

You should now be able to browse out to www.example.com 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

 
discard

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.