logo

Domino ain't the only server ya know

As I mentioned yesterday, I like to keep up with the latest and greatest when it comes to software. Hence I am using Red Hat 9 which comes with Apache 2 by default. Version 2 deals with modules differently to version 1.3 which means that Marcin's excellent PHP & Domino project is a little out of date. In order to get it to work, I had to make a few changes. Here they are:

<IfModule mod_proxy.c>
 ProxyRequests On

 <Proxy *>
  Order deny,allow
  Deny from all
  Allow from all
 </Proxy>
</IfModule>

RewriteEngine on
RewriteRule ^(.*).pma(.*) http://localhost:81$1.pma$2 [P]
RewriteRule ^(.*).nsf(.*) http://epsdomsvr01:82$1.nsf$2 [P]

Note that there is no need to test for the mod_rewrite module before you write the rules and that there is a change to the syntax of the proxy configuration. Another change I had to make was to specify Allow from all in the proxy. I don't know why or if this is a bad thing - just the only way I could get it to work. Note that in my setup I have the Domino HTTP server running on port 82 and Puakma's on port 81. Notice how I specified the address of the Domino server in the NSF rule? No idea why I had to do this but it appears that Domino 6 pass the page back with all links relative to whatever you specify in that address. Obviously if you put localhost it won't work.

All works well. I have Apache, Domino, Puakma and PHP all running on the same machine. The only annoyance I have is with Domino (surprise, surprise). It insists on inserting the port number in to URLs when you submit forms. Say you submit a form from the URL http://myserver/db.nsf/data?OpenForm. The URL returned from the server will be of the form - http://myserver:82/db.nsf/data?OpenForm&seq=1. If it's a database that requires you to login, you will be asked to login again! It's always something...

Anyway, hope you all have a nice weekend. If you happen to be in or around Sydney get down to the half-marathon and see if you can't spot Brendon "Puakma" Upson on Sunday. Cheer him on as I've given him a challenge - beat my time.

Comments

  1. Hey! Good time in the run!

    I hope Brend can do something like that, but if the guy keeps working lika the past week may be he could be a bit sleepy (Mucho Worko Brend!)

    Thanks for the tips Jake, at this time I have all my apache servers working with that setting. Domino and Puakma are working fine. Really cool stuff.

    .::AleX::.

    Dominocode.Net

  2. FINISHED!!!

    I beat my target of 2hrs, finishing in 1:59:26. Very happy with that :-) I can tell you, with 3km to go I thought it would never end!

    Off for a delightful lunch in Manly now, a few beers, and will probably pass out some time around 3pm.

    Brendon.

  3. Hi,

    can we have more details on how you accomplish to made it work ?

    i've tried with an ubuntu 6.10 and apache 2, with a domino 7.0.2 fp2, but i can't get it working with rewrite url or mod proxy of apache.

    in fact, i use Virtual hosts on my apache2 configuration, so i imagine i can't use the httpd.conf file.

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Fri 12 Sep 2003

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content