httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Zuckerman <j.zucker...@gmail.com>
Subject Re: [users@httpd] how to avoid duplicating the document root in vhost conf files?
Date Tue, 06 Oct 2009 19:15:13 GMT
On Tue, Oct 6, 2009 at 11:37 AM, Brolin Empey <brolin@brolin.be> wrote:
> 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@techsol.ca
>        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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Am I missing something? I only see the DocumentRoot declared once in
your example

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message