directives in Include-d file in <Directory>

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

 



Hello,

I have apache-1.3 (upgrading soon, but yet...)

I tried to configure access to some directory via external file:

httpd.conf:

---
<Directory ...>
Include /.../xyz-access
</Directory>
---

xyz-access:

---
# ....
Order deny,allow

Deny from ...
---

However when starting apache, it complaints:

Syntax error on line 4 of /.../xyz-access:
order not allowed here



I have tried to put "AllowOverride all" anywhere in config
- allowing All globally
- allowing All in the directory xyz-access sits in
- allowing All in the directory I'm trying to control access to

but I'm still getting the error.

the "How Directory, Location and Files sections work" says:
<CITE>
Configurations included via the Include directive will be treated as if they
were inside the including file at the location of the Include directive.
</CITE>

I was unable to understand this :-(

I would like to use the same accesslist for more directories (include it
more times), but it seems that I can't iclude directives into the
<Directory> section, but the <Directory> must lie inside of the included
file.

Am I right or did I miss something?

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
How does cat play with mouse? cat /dev/mouse

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