.. | ||
conf | ||
logs | ||
make-ssl-keys.bat | ||
make-ssl-keys.sh | ||
README.md | ||
reload-nginx.bat | ||
reload-nginx.sh | ||
start-nginx.bat | ||
start-nginx.sh | ||
stop-nginx.bat | ||
stop-nginx.sh |
This uses Nginx as the SSL offload / proxy for your local debug server.
The nginx server will server https://localhost
and will proxy that straight
through to http://localhost
(where your development server should be running).
Pre-requisites
-
Download nginx from http://nginx.org/en/download.html
-
Unzip to /nginx directory below this one. NOTE: the downloaded zip files like have a nested folder with the version number, e.g. nginx-1.11.9. You MUST rename and move folders such that you end up with nginx/nginx.exe being a valid exe.
-
Run "make-ssl-keys.bat" to create self-signed keys. WARNING: You will be asked questions. The important one is "Common Name" Set this to "localhost" or the IP address that you expect to connect to your local dev server on.
To Start nginx
- Run "start-nginx.exe"
- Look in the process list and see if nginx.exe is running.
If not, try just running nginx\nginx.exe from the command line to view any errors.
WARNING: you cannot stop nginx using Ctrl+C. See below for how to stop it.
To Stop nginx
- Run "stop-nginx.exe"
Alternatively, kill the nginx processes using task manager