| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- # 技术圈
- server {
- listen 80;
- server_name {{domain}}.test-jishuin.proginn.com;
- root /code/web/phphub/public;
- index index.php;
-
- location / {
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.php?s=$1 last;
- break;
- }
- }
- set $temp_request_id $http_x_request_id;
- if ($temp_request_id = "") {
- set $temp_request_id $request_id;
- }
- location ~ ^/(composer.json|composer.lock|ThinkPHP/|vendor/|src/|bin/|App/|.git) {
- deny all;
- }
- location ^~ /user/ {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /user/quit {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /topics/create {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ~ /topics/\d+/edit {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /file/proxyUpload {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location /ajax/getmessage {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location /api {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /.nuxt {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /_nuxt {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php7-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- }
- access_log /data/log/jishuin.log proginn-logid;
- }
- server {
- listen 80;
- server_name {{domain}}.test.proginn.com;
-
- root /code/web/;
- index index.php index.html index.htm;
- location / {
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.php?s=$1 last;
- break;
- }
- }
- set $temp_request_id $http_x_request_id;
- if ($temp_request_id = "") {
- set $temp_request_id $request_id;
- }
- location /community {
- rewrite ^/community(.*)$ https://{{domain}}.test-jishuin.proginn.com$1 permanent;
- }
- location /festival {
- alias /festival/dist;
- index index.html index.htm;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /festival/index.html last;
- break;
- }
- }
- location /oauth2 {
- alias /code/web/openx/public/oauth2;
- index index.php;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /oauth2/index.php last;
- break;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php7-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- }
- }
- location /openapi {
- alias /code/web/openx/public/api;
- index index.php;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /openapi/index.php last;
- break;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php7-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $request_filename;
- }
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php7-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location ^~ /type/vip {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /cert {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /group {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /setting/check/old_mobile {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /setting/check/real_info {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /setting/check/change_mobile {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /user/register {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /.nuxt {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /_nuxt {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /wo/cash {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /sign/new {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /type/interview {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /type/partners/ {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /wo/bills {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /job/ {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /recruit/ {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /salary/ {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /salary/detail {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /credit {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /otherpage {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /kaifain {
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /upload_image {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test-jishuin.proginn.com;
- }
- location ^~ /Public/ {
- # 匹配任何以 /Public/ 开头的地址,匹配符合以后,停止往下搜索正则,采用这一条。
- expires 1d;
- access_log off;
- }
- access_log /data/log/access.log proginn-logid;
- }
- # 新后台
- server {
- listen 80;
- server_name {{domain}}.test-rooter.proginn.com;
- root /boss/dist;
- index index.html index.htm;
- location / {
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.html last;
- break;
- }
- }
- set $temp_request_id $http_x_request_id;
- if ($temp_request_id = "") {
- set $temp_request_id $request_id;
- }
- location /api/admin {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /upload_image {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test-jishuin.proginn.com;
- }
- access_log /data/log/boss.log proginn-logid;
- }
- # festival
- server {
- listen 80;
- server_name {{domain}}.test-festival.proginn.com;
- root /boss/dist;
- index index.html index.htm;
- location / {
- if (!-e $request_filename) {
- rewrite ^(.*)$ /index.html last;
- break;
- }
- }
- location /api {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test.proginn.com;
- }
- location ^~ /upload_image {
- proxy_pass http://127.0.0.1;
- proxy_set_header Host {{domain}}.test-jishuin.proginn.com;
- }
- access_log /data/log/festival.log proginn-logid;
- }
|