我有这个设置:
192.168.1.1 - 作为具有自定义防火墙的路由器
192.168.1.2 - 作为带有php5的nginx服务器
192.168.1.3 - 作为mysql服务器
192.168.1.4 - 作为带有redmine的瘦服务器
我已成功安装瘦和重定向端口3000到192.168.1.4,我可以访问redmine。
但是当我尝试通过nginx中的domain.com/redmine设置访问时,我得到了这个:
Page not found
The page you were trying to access doesn't exist or has been removed.
Back
Nginx conf:
upstream thinCluster {
server 192.168.1.4:3000;
}
location /redmine {
try_files $uri/index.html $uri.html $uri @cluster;
}
location @cluster {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
proxy_pass http://thinCluster;
}
有什么问题?
干杯