-
-
Save joseluis/9a837a930cdc8b79064c to your computer and use it in GitHub Desktop.
Nginx dart configuration
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
gzip on; | |
server { | |
listen 80; | |
location / { | |
root D:\Www\$host\web; | |
try_files $uri @proxy; | |
} | |
location @proxy { | |
proxy_pass http://127.0.0.1:8080; | |
proxy_http_version 1.1; | |
} | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
root D:\Www\localhost; | |
index index.html; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment