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

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

 



Hello list,

Here is one of my vhost conf files:

[brolin@cowboy] [0] [1] ~/
$ cat /etc/apache2/sites-available/aidsorphanage.org
<VirtualHost *:80>
        ServerAdmin brolin@xxxxxxxxxx
        ServerName aidsorphanage.org
        ServerAlias www.aidsorphanage.org aidsorphonage.org
www.aidsorphonage.org

        DocumentRoot /var/www/aidsorphanage.org/

#       FIXME: How can I avoid duplicating ${DOCUMENT_ROOT}?
#              - brolin, 2009-09-15
        <Directory "/var/www/aidsorphanage.org/logs/">
                Order Deny,Allow
                Deny from All
        </Directory>

        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>

        ErrorLog /var/www/aidsorphanage.org/logs/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/www/aidsorphanage.org/logs/access.log combined
</VirtualHost>
[brolin@cowboy] [0] [2] ~/

How can I avoid duplicating the document root after it is declared
with the DocumentRoot directive?  In this example, the document root
is duplicated thrice.  Duplication is bad.

I am using apache2 version 2.2.11-2ubuntu2.3.

Thanks,
Brolin

--
Sometimes I forget how to do small talk: <http://xkcd.com/222/>

“If you have to ask why, you’re not a member of the intended
audience.” — Bob Zimbinski, <http://webpages.mr.net/bobz/ttyquake/>

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