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
|