Re: how to avoid duplicating the document root in vhost conf files?

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

 



On Tue, Oct 6, 2009 at 12:30 PM, Brolin Empey <brolin@xxxxxxxxx> wrote:
> 2009/10/6 Jonathan Zuckerman <j.zuckerman@xxxxxxxxx>:
>> Am I missing something? I only see the DocumentRoot declared once in
>> your example
>
> Yes, there is only 1 DocumentRoot directive, but the
> “/var/www/aidsorphanage.org/” part of the /value/ of the DocumentRoot
> directive is duplicated thrice.  How can I avoid duplicating this
> common part of the paths in the vhost conf file?
>
> ---------------------------------------------------------------------
> 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
>
>

Ah I see... I'm a software engineer too so I appreciate trying to
encapsulate often-used values but I'd say this might be one of those
battles it wouldn't kill you to forfeit.
That said, have you tried using relative paths for the error log path
declarations?  Or (my preferred solution) put them outside the
document root; why bother putting them in the doc root and then making
a directory override to disallow outside access to them when the
simpler solution would be to just put them outside the web root and
never ever worry about access rules.

---------------------------------------------------------------------
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