 |
|
 |
|
Next: What is Web Site #100?
|
| Author |
Message |
External

Since: Feb 13, 2006 Posts: 2
|
(Msg. 1) Posted: Mon Feb 13, 2006 11:55 am
Post subject: in vhost : mod_access ignore it - Hard Pb. Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hi All,
my trouble seem to be difficult :
'Order' directives don't work in a <VirtualHost> .. <Directory> section.
I have tried a lot of configuration, but result are the same.
Typical conf. that DON'T work :
NameVirtualHost 192.168.0.10
<VirtualHost 192.168.0.10>
ServerName myhost.mydomain.com
DocumentRoot /public/myhost/www
<Directory /public/myhost/www>
Order Allow,Deny
</Directory>
</VirtualHost>
OR
the same with
<Directory />
Order Allow,Deny
</Directory>
OR
the same with
<Directory "/*">
OR
<Directory "/public/myhost/www/*">
and so one.
..htaccess in the assigned directory don't work too.
Same directive in subdirectory don't work,
and .htaccess in subdirectory don't work.
The only thing that work is :
<Location />
Order Deny,Allow
Deny from all
</Location>
return a good result.
I can override all options in <Directory> directives,
i can override authentification in .htaccess, and behaviours
are as desired.
I have tried both Allow,Deny - Deny,Allow with a lot of parms.
None work.
The assigned directories are not overriden by others vhost,
nor are the same as the root server.
The root server don't use any Directory directive too.
There's no alias.
It seem that <Directory> access are already done by the server
which don't apply vhost Denied access ; but if so, why others
options can be modified ?
I don't understand anything ! My Apache is 1.3.33, i work
with him since many years, i must use Denied access in a vhost.
Many thanks for helping me, i'm totally stuck.
Zorglub >> Stay informed about: in vhost : mod_access ignore it - Hard Pb. |
|
| Back to top |
|
 |  |
External

Since: Feb 13, 2006 Posts: 2
|
(Msg. 2) Posted: Mon Feb 13, 2006 1:55 pm
Post subject: Re: in vhost : mod_access ignore it - Hard Pb. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
zorglub wrote:
> Hi All,
> my trouble seem to be difficult :
> 'Order' directives don't work in a <VirtualHost> .. <Directory> section.
> I have tried a lot of configuration, but result are the same.
>
> Typical conf. that DON'T work :
>
> NameVirtualHost 192.168.0.10
>
> <VirtualHost 192.168.0.10>
> ServerName myhost.mydomain.com
> DocumentRoot /public/myhost/www
> <Directory /public/myhost/www>
> Order Allow,Deny
> </Directory>
> </VirtualHost>
> OR
> the same with
> <Directory />
> Order Allow,Deny
> </Directory>
> OR
> the same with
> <Directory "/*">
> OR
> <Directory "/public/myhost/www/*">
> and so one.
> .htaccess in the assigned directory don't work too.
> Same directive in subdirectory don't work,
> and .htaccess in subdirectory don't work.
>
> The only thing that work is :
> <Location />
> Order Deny,Allow
> Deny from all
> </Location>
> return a good result.
>
> I can override all options in <Directory> directives,
> i can override authentification in .htaccess, and behaviours
> are as desired.
>
> I have tried both Allow,Deny - Deny,Allow with a lot of parms.
> None work.
> The assigned directories are not overriden by others vhost,
> nor are the same as the root server.
> The root server don't use any Directory directive too.
> There's no alias.
>
> It seem that <Directory> access are already done by the server
> which don't apply vhost Denied access ; but if so, why others
> options can be modified ?
>
> I don't understand anything ! My Apache is 1.3.33, i work
> with him since many years, i must use Denied access in a vhost.
> Many thanks for helping me, i'm totally stuck.
>
> Zorglub
Ok, one half a day to understand one things :
precedence of Root Server Config over Virtual Server Config.
The precedence rules are :
RootServer
Alias
Directory
Location
Virtual Host
Alias
Directory
Location
This is clear for everyone, but :
if you set a rule at RootServer->Location level specifying an Order
access rule for root Location eg :
<Location />
<Limit CONNECT>
...
</Location>
you loose the rule on the Virtual Host level specifying a new
Order access rule at every level under Location, ie Directory, Alias.
The only thing you can do is to specify an other rule on the Location
level over the '/' location itself.
Not easy to understand, but this is the explanation i found.
And my try work well now.
Hope this help,
z. >> Stay informed about: in vhost : mod_access ignore it - Hard Pb. |
|
| Back to top |
|
 |  |
| Related Topics: | mod_access_rbl on windows - Anybody know if there is a compiled version of mod_access_rbl for windows? I personally use the latest 2.0 of Apache and i'd like to have this module features... At http://www.blars.org/mod_access_rbl.html there is also source code to be compiled in C i...
Ignore my own IP Address in the logs - Within Apache, is there a line I can edit/enable/change that will cause Apache to stop logging my own IP address in the access.log file? I could write an app in PHP that would read the log and modify it by removing the lines with my IP address and the...
apache finding second hard drive - I installed a second hard drive hdb with hdb1 etc with a mount point inside of my web server root. I had this working fine, until a power failure disrupted things, and now I can't get it back. The two vfat partitions are, for example mounted as..
Using Two Hard Drives/Particians With Apache - Hi there, I have two separate patricians. All I need to know is, is it possible to use two hard drives and share from both. If so, how? Thanks Scott
DAV in vhost - Hello, I followed a dav guide and succeeded in a way that allows me to connect to a secured area. ssl.conf: <VirtualHost _default_:443> Alias /webdav/ "/home/webdav/" <Directory /home/webdav> DAV on AuthType Basic AuthNam... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|