|
|
@@ -438,4 +438,33 @@ server {
|
|
|
proxy_set_header Host {{domain}}.test.proginn.com;
|
|
|
}
|
|
|
access_log /data/log/festival.log proginn-logid;
|
|
|
-}
|
|
|
+}
|
|
|
+
|
|
|
+# 用户模块
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ server_name user.test.proginn.com;
|
|
|
+
|
|
|
+ root /proginn-user/public/;
|
|
|
+ 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 ~ \.php$ {
|
|
|
+ fastcgi_pass unix:/var/run/php7-fpm.sock;
|
|
|
+ fastcgi_index index.php;
|
|
|
+ include fastcgi_params;
|
|
|
+ }
|
|
|
+
|
|
|
+ access_log /data/log/user_proginn_access.log proginn-logid;
|
|
|
+}
|