Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- log_format specialLog '$remote_addr forwarded for $http_x_forwarded_for $http_x_real_ip - $remote_user [$time_local] '
- '"$request" $status $body_bytes_sent '
- '"$http_referer" "$http_user_agent"';
- server {
- listen 127.0.0.1:443 ssl;
- listen [::]:443 ssl;
- include snippets/ssl-utn.site.conf;
- include snippets/ssl-params.conf;
- index index.html index.htm index.nginx-debian.html;
- server_name utn.site ;
- root /var/www/html/utn.site;
- access_log /var/log/nginx/utnsite/access-special.log specialLog;
- access_log /var/log/nginx/utnsite/access.log;
- error_log /var/log/nginx/utnsite/error.log;
- location / {
- proxy_pass http://wikimedia;
- proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
- proxy_redirect off;
- proxy_buffering off;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto https;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement