Virtual Host Setup w/Apache as Front-end to Domino

Mindwatering Incorporated

Author: Tripp W Black

Created: 08/20/2013 at 06:34 PM

 

Category:
Domino Upgrades / Installations, Linux
Software Installation
Apache

Issue:
Have a standard Linux LAMP install where Apache is needed for PHP and HTML pages. IBM Lotus Domino is set up w/non-standard port (e.g. 81 or 8080). Need to setup Apache so that it can redirect requests on port 80 and treat Lotus domino as a VirtualHost entry.

Solution:
In the following example, the main site is serviced by www.mydomain.com, it's also the default * for any other unmapped domain names. The Domino HTTP service runs on port 81. In this scenario, Apache is not running port 443, domino setup with ports 81 (http) and 443 (HTTPS / SSL) via standard Internet Site documents.

# vi /etc/httpd/conf/httpd.conf
or on Ubuntu
# vi /etc/apache2/conf/httpd.conf

...
Listen 80
...
ServerName www.mydomain.com:80
...
<VirtualHost *>
ServerName www.mydomain.com
ServerAlias *.www.mydomain.com
RewriteEngine Off
</VirtualHost>
<VirtualHost *>
ServerName dom1.mydomain.com
ServerAlias *.dom1.mydomain.com
RewriteEngine On
RewriteRule ^/(.*) \http://dom1.mydomain.com:81/$1 [P]
</VirtualHost>


Note: This can also be done as a reverse proxy with multiple targets on same server or external ones.



previous page