鱼眼+ Nginx反向代理

我试图在代理后面运行Fisheye。 到目前为止,我已经设法让Jira和Stash在代理之后工作,但不是Fisheye。

这是我在Nginx的configuration文件:

server { listen 80; server_name dev.int.com; access_log off; location / { proxy_pass http://IP:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $remote_addr; port_in_redirect off; proxy_redirect http://IP:8080/jira /; proxy_connect_timeout 300; } location ~ ^/stash { proxy_pass http://IP:7990; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $remote_addr; port_in_redirect off; proxy_redirect http://IP:7990/ /stash; proxy_connect_timeout 300; } location ~ ^/crucible { proxy_pass http://IP:8060; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $remote_addr; port_in_redirect off; proxy_redirect http://IP:8060/ /crucible; proxy_connect_timeout 300; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/nginx/html; } } 

和在鱼眼中:

 <web-server site-url="http://dev.int.com/crucible" context="/crucible"> <http bind="http://dev.int.com/" proxy-port="80" proxy-scheme="http" proxy-host="dev.int.com/crucible"/> </web-server> 

然而,它只是不正确地推出东西,是一个鱼眼问题 – >当我访问/坩埚,它确实显示坩埚页面,但是,它不加载任何页面资源或Ajax。 尝试login需要我/login,所以很显然鱼眼仍然是/上下文path,尽pipe它的configuration文件。 我已经重新启动鱼眼和Nginx服务器无济于事。 任何指导将不胜感激 :)

您应该首先在Web界面中设置“Web上下文”。 这是一个看起来像什么的屏幕截图 。 还有一些信息可以在这里的文档中find 。