29 lines
846 B
Plaintext
29 lines
846 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
root /Projects/default;
|
|
access_log /var/log/nginx/default.access.log;
|
|
access_log /var/log/nginx/default.error.log;
|
|
location / {
|
|
try_files /index.html = 404;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name ~^(anp|cdn|errorsmanager|wm(arkdown|d)|pythonmapper)\.local?$;
|
|
access_log /var/log/nginx/default.80.access.log;
|
|
error_log /var/log/nginx/default.80.error.log;
|
|
location / {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Host $proxy_add_x_forwarded_for;
|
|
proxy_pass http://socket_anp/;
|
|
}
|
|
}
|
|
|
|
upstream socket_anp {
|
|
server unix:/tmp/pointers/anp.sock;
|
|
} |