Created
September 5, 2018 19:45
-
-
Save jbyman/0a3d370d00107e25c07249cdf045f226 to your computer and use it in GitHub Desktop.
Nginx Config
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
user jbyman staff; | |
worker_processes 1; | |
error_log logs/error.log; | |
error_log logs/error.log notice; | |
error_log logs/error.log info; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
access_log logs/access.log; | |
sendfile on; | |
keepalive_timeout 65; | |
server { | |
listen 0.0.0.0:8080; | |
server_name localhost; | |
root /Users/jbyman/Desktop/Workspace/Product-Announcement-Bot/www; | |
index index.php index.html; | |
location ~ \.php { | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
} | |
location / { | |
root /Users/jbyman/Desktop/Workspace/Product-Announcement-Bot/www; | |
index index.php index.html index.htm; | |
} | |
#error_page 404 /404.html; | |
# | |
# redirect server error pages to the static page /50x.html | |
# | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
include servers/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment