public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] <Directory> directive inside <VirtualHost>
@ 2005-11-27  7:00 Joseph
  2005-11-27 18:56 ` Manuel McLure
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph @ 2005-11-27  7:00 UTC (permalink / raw
  To: gentoo

Any Apache guru on the list?

Is <Directory> directive permitted inside <VirtualHost> directive?
example from Gentoo /etc/apache2/vhosts.d/00_default_vhost.conf file:

<VirtualHost *:80>
   <Directory "/var/www/localhost/htdocs">
        .....
        .....
   </Directory>
</VirtualHost>

If I comment out the #<VirtualHost> directive, the <Directory> directive
(along with all its parameter (mainly "AllowOveride All")  is working.
But the default setup that came after Gentoo conversion to new standards
is preventing for example: AllowOveride All inside <Directory> directive
to take effect.

-- 
#Joseph
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] <Directory> directive inside <VirtualHost>
  2005-11-27  7:00 [gentoo-user] <Directory> directive inside <VirtualHost> Joseph
@ 2005-11-27 18:56 ` Manuel McLure
  0 siblings, 0 replies; 2+ messages in thread
From: Manuel McLure @ 2005-11-27 18:56 UTC (permalink / raw
  To: gentoo-user

On Saturday 26 November 2005 23:00, Joseph wrote:
> Any Apache guru on the list?
>
> Is <Directory> directive permitted inside <VirtualHost> directive?
> example from Gentoo /etc/apache2/vhosts.d/00_default_vhost.conf file:
>
> <VirtualHost *:80>
>    <Directory "/var/www/localhost/htdocs">
>         .....
>         .....
>    </Directory>
> </VirtualHost>
>
> If I comment out the #<VirtualHost> directive, the <Directory> directive
> (along with all its parameter (mainly "AllowOveride All")  is working.
> But the default setup that came after Gentoo conversion to new standards
> is preventing for example: AllowOveride All inside <Directory> directive
> to take effect.
>
> --
> #Joseph

It should work fine - I have this in 
my /etc/apache2/vhosts.d/01_external_vhost.conf file:

<VirtualHost mclure.org:80>
ServerName www.mclure.org
DocumentRoot "/var/www/external/htdocs"
ScriptAlias /cgi-bin/ "/var/www/external/cgi-bin/"
<Directory "/var/www/external/htdocs">
    Options -Indexes Includes FollowSymLinks
    Order allow,deny
    Allow from all
    AcceptPathInfo on
    AllowOverride all
    php_value include_path "/var/www/external/phpinc:.:/usr/lib/php"
</Directory>
<Directory "/home/bev/html">
    Options -Indexes Includes FollowSymLinks
    Order allow,deny
    Allow from all
    AcceptPathInfo on
    AllowOverride all
    php_value include_path "/var/www/external/phpinc:.:/usr/lib/php"
</Directory>
Alias /bev /home/bev/html
<Directory "/var/www/external/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
AddType text/html .shtml
AddHandler server-parsed .shtml
AddType application/octet-stream .iso
ErrorDocument 404 /errordocs/404.php
ErrorDocument 403 /errordocs/403.php
</VirtualHost>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-27 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-27  7:00 [gentoo-user] <Directory> directive inside <VirtualHost> Joseph
2005-11-27 18:56 ` Manuel McLure

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox