Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. location / {
  5. proxy_pass http://localhost:1337;
  6. proxy_http_version 1.1;
  7. proxy_set_header Upgrade $http_upgrade;
  8. proxy_set_header Connection 'upgrade';
  9. proxy_set_header Host $host;
  10. proxy_cache_bypass $http_upgrade;
  11. auth_basic "Administrator Login";
  12. auth_basic_user_file /etc/nginx/.htpasswd;
  13. client_max_body_size 100m;
  14. }
  15.  
  16. location @wp {
  17. rewrite ^/magazine(.*) /magazine/index.php?q=$1;
  18. }
  19.  
  20. location /magazine {
  21. root /var/www/wordpress;
  22. index index.php index.html index.htm;
  23. try_files $uri $uri/ @wp;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement