| 1234567891011121314151617181920212223242526272829303132 |
- # Upstream sites for proxy-ing
- upstream js {
- server js-wp;
- }
- server {
- listen 3000;
- location / {
- root /home/siimee;
- index index.html;
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name jeffreysmithillustrator.com www.jeffreysmithillustrator.com;
- location / {
- #blocks blank user_agents
- if ($http_user_agent = "") { return 301 $scheme://www.google.com/; }
-
- proxy_set_header Host $server_name;
- 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://js;
- proxy_redirect off;
-
- proxy_connect_timeout 300;
- proxy_send_timeout 300;
- proxy_read_timeout 300;
- }
- }
|