default.conf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. server {
  2. listen 8000;
  3. server_name www.cqjhyz.top;
  4. #access_log /var/log/nginx/host.access.log main;
  5. location / {
  6. root /usr/share/nginx/html;
  7. index index.html index.htm;
  8. }
  9. #error_page 404 /404.html;
  10. # redirect server error pages to the static page /50x.html
  11. #
  12. error_page 500 502 503 504 /50x.html;
  13. location = /50x.html {
  14. root /usr/share/nginx/html;
  15. }
  16. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  17. #
  18. location /api/ {
  19. proxy_pass http://ytwmmwap.jc-project.f6y3amow.1mds0l5n.com:9991/;
  20. proxy_set_header X-Forwarded-Proto $scheme;
  21. proxy_set_header Host $http_host;
  22. proxy_set_header X-Real-IP $remote_addr;
  23. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  24. proxy_ignore_client_abort on;
  25. }
  26. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  27. #
  28. #location ~ \.php$ {
  29. # root html;
  30. # fastcgi_pass 127.0.0.1:9000;
  31. # fastcgi_index index.php;
  32. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  33. # include fastcgi_params;
  34. #}
  35. # deny access to .htaccess files, if Apache's document root
  36. # concurs with nginx's one
  37. #
  38. #location ~ /\.ht {
  39. # deny all;
  40. #}
  41. }