Re: Server document root change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 30, 2009 at 11:59 AM, Manoj Singh <manojsingh2121@xxxxxxxxx> 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.

-Brian

-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux