Domino, Apache, and PHP

We currently have Apache and Domino running on the same machine. Apache is running on port 80 and Domino on port 81. I’ve used the RewriteRule to send all .nsf files to port 81. Everything works as expected. “www.domain.com/depot” opens the .php pages and “www.domain.com/apps/site.nsf”, for example, opens the database without specifying a port.

What I would like to do is set a database (site.nsf) as the default homepage when accessing “www.domain.com”. I thought about adding VirtualHost entries, but I think this will only work if I have multiple domains. I’m only working with 1 domain. Is there any way to tell Apache that I want to open a .nsf file as the homepage? Is what I’m asking even possible? I think I could make this situation easier if I had 2 separate domains available. However, I’m not really sure that would solve this problem.

Would someone be able to point me in the right direction?

Thanks,

  • Sean

Subject: Domino, Apache, and PHP

Hi Sean!

One of the ways to solve this problem is configuring in httpd.conf the following line:

Redirect permanent /index.html http://www.domain.com/apps/site.nsf

First you should confirm what is your default homepage! (the sample above the default homepage was index.html)

Hope this helps you!

Regards,

Rogerio - ITSAPIENS

Subject: RE: Domino, Apache, and PHP

Rogerio

Thanks much for the quick response. Your solution worked perfectly.

Cheers,

  • Sean