Redirect or forward internet request to another physical Linux Apache server

My firewall directs https to Domino server where email is served. I also have a Linux server running apache service Nextcloud. Firewall is configured to forward Nextcloud requests via different port to the Linux machine. But not everyone can use non standard port in browser. I would like to be able for user outside firewall to either use nextcloud.domain.com or www.domain.com/nextcloud to get to Nextcloud machine. I do not care if Domino redirects/forward to Apache server, or the other way around. Is there any websites which describes such configurations? Once the link to Nextcloud is made, all 2 way traffic to/from browser and Nextcloud must transparent to user.

I am currently using Domino Release 9.0.1FP10 HF383. The Linux machine is running Fedora 31.

Thank you,

Durwin

Hello

Redirects are possible in Domino but I guess you need a proxying solution.

So best would be to have the Apache server reachable on standard port and proxying requests for Domino internal to the Domino server http. Domino http can run then on non standard port.

So you can decide on Apache server which requests are handled by itself and which are proxied to Domino server.

Hello @Durwin Rue !

As commented by Mathias, a Domino Server can redirect requests.

On document below you can find additional information:

> Creating a Web Site Rule document

https://help.hcl-software.com/domino/11.0.1/admin/conf_creatingawebsiteruledocument_t.html

I hope it helps on some way.

Please mark this question as answered and helpful if your issue is resolved.

Regards!​

Rodrigo de San Vicente

Staff Software Engineer

Collaborative Workflow Platform

Thank you both for the replies.

I would rather not change Domino ports. Also, between the 2 servers, Domino is the one most likely to be running. The Linux server may be down at times.

In defining web site rule, the documentation says this.

Incoming URL pattern

Pattern that describes the URLs affected by this rule.

If you are defining many rules, specify the longest unique pattern for each rule. Do not include http or the host name in the pattern.

I would want to match nextcloud.domain.com to redirect to Nextcloud server, but docs say not to include host name. How is this done? do I instead try domin.com/nextcloud?

The internet site itself defines for which FQDN the rules are for, so if you want to redirect all which is coming to this hostname the rule pattern has to be /*

But be careful this will redirect any request which is for this FQDN defined in internet site document.

For redirect the target has to be another FQDN.

If you just want to forward this internally then my first answer would be the right choice.

A thing like ProxyPass on Apache is as far as I know not possible with domino if it is not hosted on Domino itself.

So if I understood you correct you want the nextcloud apache and the domino http reachable with the same FQDN but different path patterns.

And for this you have to use Apache and ProxyPass rules because Domino is not intended to be a Proxy.

Thank you for clarifying this. That ruins my idea. If I have Apache proxy for Domino, does Domino need to be listening on different port?

Yes, for example you can configure Apache for 443 and 80 and Domino on 8080 and in Apache you can configure a ProxyPass rule for example for /domino to proxy all requests internal to domino.

From external you only access you FQDN and if you use path /domino it will be proxied to Domino http