httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Mearns <>
Subject Re: [users@httpd] Server document root change
Date Mon, 30 Mar 2009 16:15:31 GMT
On Mon, Mar 30, 2009 at 11:59 AM, Manoj Singh <> wrote:
> Hi All,
> My production server has facing disk full problem. Actually my server has
> the following drives mounted:
> /var - 10 GB
> /home - 200 GB
> etc...
> Now i want to change the document root of apache server from /var to /home.
> Is there any problem if i change this?
> Please suggest.
> Regards,
> Manoj

Undoubtedly, but not because of Apache. the only issues you should run
in to are any server-side scripts that use absolute paths, which
(unless you've got really good and meticulous programmers) there's
probably a few of hanging around.

I'd say your best bet if you want to change the document root is to
copy all your content to where you want it, set up a test Apache
server and have it listen on a different port, and change your
document root there first. That will give you a chance to check
everything out before committing the changes to the public.

Of course, since you're using a POSIX system, you could always mount a
new HD where ever your DocumentRoot currently points to.


Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message