4 Answers
咱们的一键安装默认站点路径为:/data/wwwroot/default/,我在0.conf中修改为/data/www啦,不知道nginx配置文件需要修改哪个地方?
如果将禅道放到修改之前的 default目录下,是可以正常访问的。故认为是路径应该是配置出错啦
如果将禅道放到修改之前的 default目录下,是可以正常访问的。故认为是路径应该是配置出错啦
问题已经解决。将禅道的站点根目录名称由 zentaopms 修改为 pms后,发现可以正常访问,禅道已经安装成功。但是不知道为什么,站点名称为 zentaopms时访问会报502.
站点根目录/data/www 一下是nginx.conf配置文件内容:
################## default ############################
60 server {
61 listen 80;
62 server_name _;
63 #server_name /data/www;
64 access_log /data/wwwlogs/access_nginx.log combined;
65 #root /data/www;
66 index index.html index.htm index.php;
67 location /nginx_status {
68 stub_status on;
69 access_log off;
70 allow 127.0.0.1;
71 deny all;
72 #allow from all;
73 }
74 location / {
75 try_files $uri @apache;
76 }
77
78 location @apache{
79 proxy_pass http://127.0.0.1:10080;
80 include proxy.conf;
81 }
82 location /zentao {
83 try_files $uri @zentao;
84 }
85
86 location /chl {
87 try_files $uri @apache1;
88 }
89
90 location @zentao{
91 proxy_pass http://36.110.70.38:10081;
92 include proxy.conf;
93 }
94 location @apache1{
95 proxy_pass http://36.110.70.38:10080;
96 include proxy.conf;
97 }
98 }
站点根目录/data/www 一下是nginx.conf配置文件内容:
################## default ############################
60 server {
61 listen 80;
62 server_name _;
63 #server_name /data/www;
64 access_log /data/wwwlogs/access_nginx.log combined;
65 #root /data/www;
66 index index.html index.htm index.php;
67 location /nginx_status {
68 stub_status on;
69 access_log off;
70 allow 127.0.0.1;
71 deny all;
72 #allow from all;
73 }
74 location / {
75 try_files $uri @apache;
76 }
77
78 location @apache{
79 proxy_pass http://127.0.0.1:10080;
80 include proxy.conf;
81 }
82 location /zentao {
83 try_files $uri @zentao;
84 }
85
86 location /chl {
87 try_files $uri @apache1;
88 }
89
90 location @zentao{
91 proxy_pass http://36.110.70.38:10081;
92 include proxy.conf;
93 }
94 location @apache1{
95 proxy_pass http://36.110.70.38:10080;
96 include proxy.conf;
97 }
98 }
Please login or Register to submit your answer