cancel
Showing results for 
Search instead for 
Did you mean: 

Reverse Proxy

vineyardtech_
Champ on-the-rise
Champ on-the-rise

(a id="nxw_TAB_MANAGE" accesskey="m" onclick="if(!(event.ctrlKey||event.metaKey||event.button==1)) {this.href='http://127.0.0.1:8080/nuxeo/nxpath/default@view_domains?tabIds=%3ATAB_MANAGE&conversationId=0NXMAIN2'}"href="http://website.com/nuxeo/nxpath/default@view_domains?tabIds=%3ATAB_MANAGE" name="nxw_TAB_MANAGE"> (span class="actionLabel ">Manage(/span></a)

This is when you get the properties, of say Home, Document Management, etc.

I've got the proxy to the point it's somewhat working. The only issue (quite large unfortunately) is that I can't figure out how to get the this.href to rewrite over to the website.com that is referenced in the regular href. If I click ctrl and the link, it goes to the normal href, but when clicking the link normally, it'll just go to the 127.0.0.1 local address. I am doing this through IIS as the webserver, I think I just need to add a custom tag, but have been unable to figure out what tag needs to be added. Any help would be appreciated.

1 ACCEPTED ANSWER

vineyardtech_
Champ on-the-rise
Champ on-the-rise

Incase anyone else tries to do an IIS reroute, the documentation is correct, but 1 additional thing needs to be done. Retain Host Headers, apparently not enabled by default, you have to manually enable, then everything works.

cmd: appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true

View answer in original post

9 REPLIES 9

vineyardtech_
Champ on-the-rise
Champ on-the-rise

After searching some more, I've found the function getBaseURL() is returning http

Florent_Guillau
World-Class Innovator
World-Class Innovator

Have you followed the [reverse proxy doc](http

vineyardtech_
Champ on-the-rise
Champ on-the-rise

Yes, specifically the IIS version that's linked on the page

vineyardtech_
Champ on-the-rise
Champ on-the-rise

New finding. the this.href is my inbound rewrite url... I set the inbound just as the server ip and that now shows...

Florent_Guillau
World-Class Innovator
World-Class Innovator

All that's needed for virtual hosting is the setting of an HTTP header Nuxeo-Virtual-Host to something like http://mysite.com. This is done differently for different reverse proxy solutions, for IIS it seems to be the HTTP_NUXEO_VIRTUAL_HOST server variable (see doc). For Apache it's RequestHeader append nuxeo-virtual-host (see doc).

In addition, for things that need the URL but are not triggered through HTTP requests (think for instance of asynchronous sending of emails), the property nuxeo.url must be set in nuxeo.conf.

This is how my inbound rule is configured per the document.

vineyardtech_
Champ on-the-rise
Champ on-the-rise

Incase anyone else tries to do an IIS reroute, the documentation is correct, but 1 additional thing needs to be done. Retain Host Headers, apparently not enabled by default, you have to manually enable, then everything works.

cmd: appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true

Thanks I'll add this to the doc. Could you tell me if there's a user interface for this, to add it below the other configuration steps in the doc?

Not within IIS(8.5) that I could find, just the command in the command prompt window.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.