homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Possible for Apache to serve from an alternate disk?
if the usual one is not mounted?

10+ Year Member

Msg#: 4193126 posted 4:03 pm on Aug 27, 2010 (gmt 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))



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

Msg#: 4193126 posted 3:23 am on Aug 29, 2010 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved