Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name trunk-wawa.abc.com;
  5.  
  6. #301: The HTTP response status code 301 Moved Permanently
  7. return 301 https://trunk-wawa.abc.com$request_uri;
  8. }
  9.  
  10. server {
  11. listen 443 ssl http2;
  12. server_name trunk-wawa.abc.com;
  13.  
  14. ssl_certificate /etc/nginx/ssl/bundle.cer;
  15. ssl_certificate_key /etc/nginx/ssl/io.key;
  16.  
  17. access_log /var/log/nginx/trunk-wawa.abc.com.log combined buffer=512k flush=5m;
  18. error_log /var/log/nginx/trunk-wawa.abc.com.error.log;
  19.  
  20. error_page 403 /403.html;
  21. location = /403.html {
  22. allow all;
  23. }
  24.  
  25. location ~ /(ivy/error) {
  26. deny all;
  27. return 403;
  28. }
  29.  
  30. location ~ /(ivy/wf/) {
  31. deny all;
  32. return 403;
  33. }
  34.  
  35. #location ^~ /ivy/info/ {
  36. # deny all;
  37. # return 403;
  38. #}
  39.  
  40. rewrite ^/favicon.ico$ /var/www/favicon.ico break;
  41.  
  42. location ~* /favicon(.*) {
  43. log_not_found off;
  44. access_log off;
  45. alias /var/www/favicon.ico;
  46. }
  47.  
  48. location / {
  49. return 301 /ivy;
  50. }
  51.  
  52. location /ivy/ {
  53. include /etc/nginx/wawa-reverse.conf;
  54. auth_basic "Restricted area";
  55. auth_basic_user_file .htpasswd-wawa;
  56. if ($arg_pageId = admin_panel) {
  57. return 401;
  58. }
  59.  
  60. proxy_pass http://100.133.1.30:8000/ivy/;
  61. }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement