Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user root root;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- sendfile on;
- keepalive_timeout 65;
- gzip on;
- server {
- listen 80;
- server_name localhost;
- root /var/www;
- index index.html index.htm;
- satisfy any;
- allow 198.18.0.2/32;
- location / {
- proxy_set_header Host $http_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 $scheme;
- proxy_pass http://127.0.0.1:8000/;
- }
- location /static/ {
- alias /var/www/appstore-client/static/;
- }
- location ^~ /advanced {
- alias /var/www/oldrobotwebpage;
- }
- location /libs {
- root /var/www;
- }
- location ^~ /libs/qimessaging/1.0/qimessaging.js {
- auth_pam "Secure Zone";
- auth_pam_service_name "nginx";
- }
- location ^~ /libs/qimessaging/1.0/socket.io/ {
- rewrite /libs/qimessaging/1.0/socket.io/(.*) /socket.io/$1 break;
- proxy_pass http://127.0.0.1:8002;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $host;
- }
- location ~ /apps/.*/html/?.* {
- root /var/www;
- }
- location ^~ /apps {
- rewrite ^(/apps/[a-zA-Z0-9_.-]*)(/.*)$ /$1/html$2 break;
- }
- location ^~ /services {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/var/run/fcgi-nao.sock;
- fastcgi_param SCRIPT_NAME /django-fcgi;
- }
- }
- }
- error_log /var/log/nginx/error.log debug;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement