Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-22-2007, 04:59 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 26

Rep: Reputation: 0
Apache .htaccess <files> and <limit>


i want 2 different levels of web access to my page.

all files should be protected, at least a valid-user should be given.

i do in .htaccess file:

<Files *>
require valid-user

Accessing some files need special rights
<Files Security>
require group admin

But sending a form (via method POST) should be protected in a special way
i did

<Limit POST>
require group config admin

But this does not combine somehow:
I never get the restriction (passwd dialog) to the group, only if a
comment the <Files> section out. But in that case than, no user/passwd is required to access my pages (via GET) ....

What can i do to get the right behaviour ?
I want this:
If access comes with GET, the <files> restriction should happen.
If access with POST, in this case, only the Limit restriction should be fullfilled



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache not reading .htaccess files jmoschetti45 Linux - Server 5 03-18-2007 09:35 AM
permission denied on .htaccess files in Apache scott.anderson Linux - Software 3 12-16-2005 12:19 PM
How do I specify a memory slice limit with a .htaccess file? abefroman Linux - Software 0 09-22-2005 07:38 PM
is htaccess on apache 2.0 not the same as in 1.3 abd_bela Linux - General 3 07-23-2003 05:17 AM
.htaccess in apache 2 im1crazyassmofo Linux - Software 1 04-04-2003 01:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration