Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

default.conf 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Upstream sites for proxy-ing
  2. upstream js {
  3. server js-wp;
  4. }
  5. upstream laps {
  6. server laps-wp;
  7. }
  8. server {
  9. listen 80;
  10. listen [::]:80;
  11. server_name jeffreysmithillustrator.com www.jeffreysmithillustrator.com;
  12. location / {
  13. #blocks blank user_agents
  14. if ($http_user_agent = "") { return 301 $scheme://www.google.com/; }
  15. proxy_set_header Host $server_name;
  16. proxy_set_header X-Real-IP $remote_addr;
  17. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  18. proxy_set_header X-Forwarded-Proto $scheme;
  19. proxy_pass http://js;
  20. proxy_redirect off;
  21. proxy_connect_timeout 300;
  22. proxy_send_timeout 300;
  23. proxy_read_timeout 300;
  24. }
  25. location ~/\.ht {
  26. deny all;
  27. }
  28. }
  29. server {
  30. listen 80;
  31. listen [::]:80;
  32. server_name staging.laprintmaking.com;
  33. location / {
  34. #blocks blank user_agents
  35. if ($http_user_agent = "") { return 301 $scheme://www.google.com/; }
  36. proxy_set_header Host $server_name;
  37. proxy_set_header X-Real-IP $remote_addr;
  38. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  39. proxy_set_header X-Forwarded-Proto $scheme;
  40. proxy_pass http://laps;
  41. proxy_redirect off;
  42. proxy_connect_timeout 300;
  43. proxy_send_timeout 300;
  44. proxy_read_timeout 300;
  45. }
  46. location ~/\.ht {
  47. deny all;
  48. }
  49. }