You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matt <lm...@gmail.com> on 2011/04/26 18:56:57 UTC

[users@httpd] Htaccess Help

I have an .htaccess file like so.

order allow,deny

allow from x.x.x.0/24

I have this in my root html directory and it works fine.  Only allows
access by the x.x.x.0/24 subnet.  Thing is I have one file
~"siteinfo.html" that I want to allow anyone to access.  How would I
do that?

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Htaccess Help

Posted by Matt <lm...@gmail.com>.
> <Files siteinfo.html>
> allow from all
> </Files>


So would it be:

order allow,deny
allow from x.x.x.0/24
<Files siteinfo.html>
allow from all
</Files>

Or does it matter which comes first?

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Htaccess Help

Posted by Eric Covener <co...@gmail.com>.
On Tue, Apr 26, 2011 at 12:56 PM, Matt <lm...@gmail.com> wrote:
> I have an .htaccess file like so.
>
> order allow,deny
>
> allow from x.x.x.0/24
>
> I have this in my root html directory and it works fine.  Only allows
> access by the x.x.x.0/24 subnet.  Thing is I have one file
> ~"siteinfo.html" that I want to allow anyone to access.  How would I
> do that?

<Files siteinfo.html>
allow from all
</Files>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org