Welcome to WebmasterWorld Guest from 50.19.190.144

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)

Full Member

10+ Year Member

joined:June 24, 2004
posts:202
votes: 0


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)

Senior Member from KZ 

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

joined:Jan 10, 2005
posts:2886
votes: 1


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members