Remove port number from fisheye
Asked by Lavenwood:

Hi

I have a problem. Im running Fisheye/crucible under Apache on a ubuntu server.

I can access the site like this:

[www.example.com/fisheye](http://www.example.com/fisheye)

The problem is that all links are broken, and looks like css is missing

The two config files:

```
<web-server site-url="http://www.example.com/fisheye">
 <http bind=":8060" proxy-host="example.com" proxy-port="80" proxy-scheme="http"/>
 </web-server>

And

 <web-server site-url="http://www.example.com/fisheye" context="/fisheye">
 <http bind=":8060" proxy-port="80" proxy-scheme="http" proxy-host="example.com"/>
```

Anyone know what the problem is?

Best regards  
Jakob


Answers:
author: Mark A_
body: Hey Jakob,

Can you share what your proxy configuration looks like?

Can you open the development panel in your web browser, view the network tab, and see if you are receiving any failures in the requests loading?

You can follow the instructions on [generating a HAR](https://confluence.atlassian.com/display/KB/Generating+HAR+files+and+Analysing+Web+Requests) to access the development panel for your browser, but do NOT save and attach the file. This is simply for you to review locally.  

Feel free to look at [Integrating Apache reverse proxy with FishEye](https://confluence.atlassian.com/kb/integrating-apache-http-server-reverse-proxy-with-fisheye-753894408.html) if you are using Apache for your proxy.  

From your description, either a proxy or network configuration is blocking certain requests from loading. You should be able to see this in the network tab of your browser development panel.

-Mark W.

comments: author: Lavenwood
body: Thanks for the reply

This is my proxy conf

```
<VirtualHost *:80>
 
ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined

 ServerName example.com
 
 ProxyRequests Off
 ProxyVia Off
 
 <Proxy *>
 Require all granted
 </Proxy>
 
 ProxyPass /jira http://www.example.com:8080/jira
 ProxyPassReverse /jira http://www.example.com:8080/jira
 
 ProxyPass /confluence http://www.example.com:8090/confluence
 ProxyPassReverse /confluence http://www.example.com:8090/confluence
 
 ProxyPass /fisheye http://www.example.com:8060/fisheye
 ProxyPassReverse /fisheye http://www.example.com:8060/fisheye

</VirtualHost>

```


author: Mark A_
body: Thanks, Jakob.

Your configuration looks good and should work. I was able to confirm this by setting up my environment the same. As noted, I expect that maybe a firewall or other network configuration is blocking certain requests.  

Were you able to review your HAR network data to see what requests were being rejected?  

When you say your links are broken, what do you mean exactly?

Regards,

Mark


author: Lavenwood
body: If i check the links on the site, its missing the context path. So instead of linking to example.com/fisheye/users  
It links to example.com/users


author: Mark A_
body: Hey Jakob,

I think that I know what may be the issue as I've reproduced on my end. I was able to get my instance to be stripped of its CSS and all links exclude the context path defined. This was done with FishEye being loaded with no context path in its configuration, therefore, it does not have any knowledge that a context path existed. I suspect the reason for this is the manual modification of the config.xml. Please note that we much prefer making such configurations through the UI and not to the configuration file directly.

1. Stop FishEye
2. Modify config.xml to ensure context path is set as per your second example
3. Start FishEye

```
<web-server site-url="http://www.example.com/fisheye" context="/fisheye">

<http bind=":8060" proxy-port="80" proxy-scheme="http" proxy-host="example.com"/>

</web-server>
```

FishEye should now be aware of the context path and display links and css appropriately.

Also, be sure to clear browser cache or try to access FishEye in incognito mode.

Mark