pin_guide_ms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.4 KiB

3 years ago
  1. # pin_guide_ms.private.conf
  2. # pin_guide_ms nginx private config.
  3. # This is a [private] api. It means nginx listen on port 8000.
  4. # @version 171017:1
  5. # @author karminski <code.karminski@outlook.com>
  6. # server config
  7. server {
  8. listen 8000;
  9. server_name pin-guide-ms.juejin.im;
  10. # origin sessings
  11. include /data/apps/nginx/conf/origin/gold.xitu.io_and_juejin.im.conf;
  12. root /data/repo/pin_guide_ms/src/;
  13. access_log /data/repo/pin_guide_ms/logs/pin_guide_ms.private.access.log logstash;
  14. error_log /data/repo/pin_guide_ms/logs/pin_guide_ms.private.error.log;
  15. client_body_temp_path /data/tmp/nginx/client_body_temp/ 1 2;
  16. proxy_temp_path /data/tmp/nginx/proxy_temp/ 1 2;
  17. fastcgi_temp_path /data/tmp/nginx/fastcgi_temp/ 1 2;
  18. rewrite "^(.*)/v1/setPlaceholderGuide$" $1/setPlaceholderGuideApi.php?$query_string last;
  19. rewrite "^(.*)/v1/getPlaceholderGuide$" $1/getPlaceholderGuideApi.php?$query_string last;
  20. rewrite "^(.*)/v1/updatePlaceholderGuide$" $1/updatePlaceholderGuideApi.php?$query_string last;
  21. rewrite "^(.*)/v1/findPlaceholderGuide$" $1/findPlaceholderGuideApi.php?$query_string last;
  22. rewrite "^(.*)/v1/delPlaceholderGuide$" $1/delPlaceholderGuideApi.php?$query_string last;
  23. rewrite "^(.*)/status$" $1/status.php last;
  24. rewrite "^(.*)/server_env$" $1/server_env.php last;
  25. if ($request_uri ~ " ") {
  26. return 444;
  27. }
  28. location / {
  29. }
  30. location = /ENV {
  31. allow 127.0.0.1;
  32. deny all;
  33. }
  34. location ~* ^/DOCUMENTS{
  35. return 404;
  36. }
  37. location ~* ^/protected{
  38. return 404;
  39. }
  40. location ~* ^/test{
  41. return 404;
  42. }
  43. location ~* ^/logs{
  44. return 404;
  45. }
  46. location ~* ^/conf{
  47. return 404;
  48. }
  49. location = /favicon.ico {
  50. allow all;
  51. log_not_found off;
  52. access_log off;
  53. }
  54. location ~* ^/not_found{
  55. return 404;
  56. }
  57. location ~ /\. {
  58. deny all;
  59. access_log off;
  60. log_not_found off;
  61. }
  62. location ~ \.php$ {
  63. if ( $fastcgi_script_name ~ \..*\/.*php ) {
  64. return 403;
  65. }
  66. include fastcgi.conf;
  67. fastcgi_pass 127.0.0.1:9000;
  68. fastcgi_index index.php;
  69. }
  70. }