1 |
On 06/24/2012 01:47 PM, Peter Humphrey wrote: |
2 |
> # Added by PRH: |
3 |
> AddType text/html .shtml |
4 |
> AddOutputFilter INCLUDES .shtml |
5 |
> <Directory /var/www/localhost/htdocs> |
6 |
> Options +SymLinksIfOwnerMatch +Includes +IncludesNoExec |
7 |
> </Directory> |
8 |
> |
9 |
> ... |
10 |
> |
11 |
> That is indeed my working guide. Many thanks for your help so far. |
12 |
|
13 |
No problem. This is the error you need to fix: |
14 |
|
15 |
> [Sun Jun 24 18:38:29 2012] [warn] [client 192.168.2.6] mod_include: |
16 |
> Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed |
17 |
|
18 |
I see above that you've already tried to set "Options +Includes" on the |
19 |
directory, but for some reason it isn't working. You'll have to look for |
20 |
it, but I can make an educated guess. |
21 |
|
22 |
When including the various conf files, apache does them in alphabetical |
23 |
(or numerical, in this case) order. The modules.d directory will be |
24 |
included first, and then vhosts.d directory because that's the order |
25 |
specified in httpd.conf: |
26 |
|
27 |
Include /etc/apache2/modules.d/*.conf |
28 |
... |
29 |
Include /etc/apache2/vhosts.d/*.conf |
30 |
|
31 |
The alphabetical/numerical order is (probably) just whatever order the |
32 |
shell glob returns. |
33 |
|
34 |
When you specify "Options +Foo" for a directory, you're saying, "take |
35 |
whatever the current options are for this directory, and add Foo to |
36 |
those." My guess: you specify some options for, |
37 |
|
38 |
/var/www/localhost/htdocs |
39 |
|
40 |
in, |
41 |
|
42 |
/etc/apache2/modules.d/00_default_settings.conf |
43 |
|
44 |
and then later, specify *different* options for the same directory. The |
45 |
latter ones take precedence, or wipe out the old ones completely if you |
46 |
didn't use plus/minus signs. |
47 |
|
48 |
Either modify the other, |
49 |
|
50 |
<Directory /var/www/localhost/htdocs> |
51 |
|
52 |
entry to use plus/minus signs, or just add the "Options Includes" there. |