Skip to content

Instantly share code, notes, and snippets.

@xamedow
Created March 7, 2019 08:26
Show Gist options
  • Save xamedow/3aa432f7c50fb4695aa94f99bfc9f908 to your computer and use it in GitHub Desktop.
Save xamedow/3aa432f7c50fb4695aa94f99bfc9f908 to your computer and use it in GitHub Desktop.
server location usage for static files routing
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