Created
November 20, 2014 23:38
-
-
Save simonw/35f0ebf9c1d6df158759 to your computer and use it in GitHub Desktop.
Configuration for running nginx not-as-root in a local directory (place files to serve in a child folder called "app")
This file contains 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
daemon off; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
access_log /dev/stdout; | |
error_log /dev/stderr; | |
types { | |
text/html html htm shtml; | |
text/css css; | |
image/gif gif; | |
image/jpeg jpeg jpg; | |
application/javascript js; | |
} | |
server { | |
listen 8002; | |
index index.html; | |
root app; | |
} | |
} |
This file contains 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 `pwd` -c `pwd`/nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment