Last active
December 27, 2016 01:07
-
-
Save rchrd2/a6f0214543420d29bbeb9c2dfaf156ec to your computer and use it in GitHub Desktop.
NGINX CLI – how to start nginx as a process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_log /dev/stderr; | |
events {} | |
http { | |
#access_log /dev/stdout; | |
access_log /dev/null; | |
server { | |
listen 8066; | |
server_name _; | |
location / { | |
proxy_pass http://rchrd.net; | |
proxy_set_header Host $http_host; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx -p `mktemp -d` -c `pwd`/rproxy.conf -g "pid `mktemp -u`; daemon off;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment