Jump to content

Solved! Apache and Domino running together



We can use Apache as frontend HTTP server running on port 80, and Domino on port 81, so that users can access both Apache and Domino pages via port 80 only.This is done via the Apache Rewrite Engine, but until now it caused one nasty problem: When doing a submit on a Domino page, then Domino would add the port 81 to the URL, and the user could not access that page, if only port 80 was opened to the internet.I found a solution how to overcome this Domino's problem, by adding Apache Reverse Proxy Engine to the httpd.conf.It's very simple to setup, just add these lines at the end of your Apache's httpd.conf file, and replace the IP: number with your internet server's IP number or domain name.In this Rewrite setup, I made it so that all .php ending URLs are handled by Apache, and all other URLs by Domino. This gives us the possibility to add php5 and sqlite3 code to any Domino site.

ProxyRequests OffOrder deny,allowAllow from allProxyPass / / "D:/Apache/htdocs"DirectoryIndex index.html index.php index.sh default.jspRewriteEngine OnRewriteCond %{REQUEST_URI} "!.php"RewriteRule ^/(.*)$1 [P]The above ProxyPassReverse setup will now return all submitted pages to (yes, that's intentionally a malformed URL), and this allows us now to redirect the malformed URL via a Domino Web Configuration document to the wanted port 80 back.For this we create a Web Configuration document like this:BasicsWhat do you want to setup:URL-->URLMappingIncoming URL path:/:81/*Replacement URL string:/*That's it, now you have a fully working Domino running under Apache!PS.If you haven't setup Apache before, all you need to do is to install it, and uncomment the following lines from httpd.conf, to enable the Rewrite and Proxy engine:Uncomment line 110, 115, 118:LoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.soLoadModule rewrite_module modules/mod_rewrite.so




Recommended Comments

There are no comments to display.

Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...