Welcome to WebmasterWorld Guest from 54.158.54.179

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Possible for Apache to serve from an alternate disk?

if the usual one is not mounted?

     
4:03 pm on Aug 27, 2010 (gmt 0)

10+ Year Member



Curious if it is possible for the Apache web server to use an alternate DocumentRoot IF the default DocumentRoot is not available? (While the servers are running)

DocumentRoot /mnt1/var/www/html
AltDocumentRoot /mnt2/var/www/html

I doubt it is possible since Apache is most likely not listening for a response back from the default DocumentRoot?

The other option, if possible, is to have Heartbeat change the Mount point on the Apache machine if the machine serving up mnt1 (.103) is unavailable? (Heartbeat drop the mount to .103 and mount backup NFS2 (.104))
3:23 am on Aug 29, 2010 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Apache has no directory failover functionality built in. You need something on the system level to change mounted disks whenever something happens with the connection to the original mount. I have no experience with Heartbeat or other utilities to do this, so can't advice you on that. Maybe another member can jump in and help you.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month