|
@@ -1,4 +1,16 @@
|
|
-# nginx各种配置
|
|
|
|
|
|
+# 部署步骤
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# 配置文件
|
|
|
|
|
|
### nginx.conf
|
|
### nginx.conf
|
|
|
|
|
|
@@ -73,15 +85,15 @@ http {
|
|
server {
|
|
server {
|
|
listen 8171;
|
|
listen 8171;
|
|
server_name 127.0.0.1;
|
|
server_name 127.0.0.1;
|
|
-
|
|
|
|
|
|
+
|
|
root html;
|
|
root html;
|
|
index index.html index.htm index.php;
|
|
index index.html index.htm index.php;
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
location / {
|
|
location / {
|
|
root /root/web/wisdom-saas/public/;
|
|
root /root/web/wisdom-saas/public/;
|
|
- index index.html;
|
|
|
|
- try_files $uri $uri/ /index.html;
|
|
|
|
|
|
+ index index.html;
|
|
|
|
+ try_files $uri $uri/ /index.html;
|
|
|
|
|
|
#Proxy Settings
|
|
#Proxy Settings
|
|
proxy_redirect off;
|
|
proxy_redirect off;
|
|
@@ -107,14 +119,14 @@ server {
|
|
server {
|
|
server {
|
|
listen 80;
|
|
listen 80;
|
|
server_name wechat2.huifuwu.cn;
|
|
server_name wechat2.huifuwu.cn;
|
|
-
|
|
|
|
|
|
+
|
|
root html;
|
|
root html;
|
|
index index.html index.htm index.php;
|
|
index index.html index.htm index.php;
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
location / {
|
|
location / {
|
|
proxy_pass http://139.159.210.228:8161/platform/;
|
|
proxy_pass http://139.159.210.228:8161/platform/;
|
|
-
|
|
|
|
|
|
+
|
|
#Proxy Settings
|
|
#Proxy Settings
|
|
proxy_redirect off;
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|
|
@@ -132,5 +144,3 @@ server {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
|
-
|
|
|
|
-
|
|
|