Created
March 7, 2019 08:26
-
-
Save xamedow/3aa432f7c50fb4695aa94f99bfc9f908 to your computer and use it in GitHub Desktop.
server location usage for static files routing
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
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 82; | |
server_name dsa-test-front.moffice.akbars.ru; | |
location / { | |
root C:/Users/user/Desktop/login; | |
try_files $uri $uri/ index.html; | |
} | |
location /rb { | |
alias C:/Users/user/Desktop/rb; | |
try_files $uri $uri/ index.html; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment