Last active
January 4, 2016 15:09
-
-
Save ekazakov/8638883 to your computer and use it in GitHub Desktop.
Nginx configs
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
#Proxy for virtual box | |
server { | |
listen 0.0.0.0:80; | |
server_name is.loc; | |
location / { | |
proxy_pass http://is.loc; | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-NginX-Proxy true; | |
} | |
} |
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
#Конфиг для web app | |
server { | |
listen *:80; | |
server_name helios.local static-helios.helios.local content.helios.local; | |
index app.html; | |
root /home/achernykh/projects/Platform.CC.Helios/dist-dev; | |
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|pdf|txt|js|svg|woff|ttf|otf)$ { | |
root /home/achernykh/projects/Platform.CC.Helios/dist-dev; | |
} | |
location / { | |
try_files $uri $uri/ /app.html; | |
} | |
# proxy_pass http://ved.virt.ly:18082; | |
# proxy_set_header Host $http_host; | |
} | |
# в основном конфиге прописать | |
# map $host $projects_root { | |
# default "/Users/ekazakov/Workspace"; | |
# } | |
# include conf/*.conf; | |
# include /Users/ekazakov/Workspace/**/*.conf; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment