Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- location / {
- proxy_pass http://localhost:1337;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- auth_basic "Administrator Login";
- auth_basic_user_file /etc/nginx/.htpasswd;
- client_max_body_size 100m;
- }
- location @wp {
- rewrite ^/magazine(.*) /magazine/index.php?q=$1;
- }
- location /magazine {
- root /var/www/wordpress;
- index index.php index.html index.htm;
- try_files $uri $uri/ @wp;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement