1 |
On Saturday 26 November 2005 23:00, Joseph wrote: |
2 |
> Any Apache guru on the list? |
3 |
> |
4 |
> Is <Directory> directive permitted inside <VirtualHost> directive? |
5 |
> example from Gentoo /etc/apache2/vhosts.d/00_default_vhost.conf file: |
6 |
> |
7 |
> <VirtualHost *:80> |
8 |
> <Directory "/var/www/localhost/htdocs"> |
9 |
> ..... |
10 |
> ..... |
11 |
> </Directory> |
12 |
> </VirtualHost> |
13 |
> |
14 |
> If I comment out the #<VirtualHost> directive, the <Directory> directive |
15 |
> (along with all its parameter (mainly "AllowOveride All") is working. |
16 |
> But the default setup that came after Gentoo conversion to new standards |
17 |
> is preventing for example: AllowOveride All inside <Directory> directive |
18 |
> to take effect. |
19 |
> |
20 |
> -- |
21 |
> #Joseph |
22 |
|
23 |
It should work fine - I have this in |
24 |
my /etc/apache2/vhosts.d/01_external_vhost.conf file: |
25 |
|
26 |
<VirtualHost mclure.org:80> |
27 |
ServerName www.mclure.org |
28 |
DocumentRoot "/var/www/external/htdocs" |
29 |
ScriptAlias /cgi-bin/ "/var/www/external/cgi-bin/" |
30 |
<Directory "/var/www/external/htdocs"> |
31 |
Options -Indexes Includes FollowSymLinks |
32 |
Order allow,deny |
33 |
Allow from all |
34 |
AcceptPathInfo on |
35 |
AllowOverride all |
36 |
php_value include_path "/var/www/external/phpinc:.:/usr/lib/php" |
37 |
</Directory> |
38 |
<Directory "/home/bev/html"> |
39 |
Options -Indexes Includes FollowSymLinks |
40 |
Order allow,deny |
41 |
Allow from all |
42 |
AcceptPathInfo on |
43 |
AllowOverride all |
44 |
php_value include_path "/var/www/external/phpinc:.:/usr/lib/php" |
45 |
</Directory> |
46 |
Alias /bev /home/bev/html |
47 |
<Directory "/var/www/external/cgi-bin"> |
48 |
AllowOverride None |
49 |
Options None |
50 |
Order allow,deny |
51 |
Allow from all |
52 |
</Directory> |
53 |
AddType text/html .shtml |
54 |
AddHandler server-parsed .shtml |
55 |
AddType application/octet-stream .iso |
56 |
ErrorDocument 404 /errordocs/404.php |
57 |
ErrorDocument 403 /errordocs/403.php |
58 |
</VirtualHost> |
59 |
-- |
60 |
gentoo-user@g.o mailing list |