Koozali.org: home of the SME Server

httpd access control problem

Offline betchern0t

  • *
  • 6
  • +0/-0
httpd access control problem
« on: December 21, 2009, 10:01:05 AM »
Hi,
     I must be missing something. I am trying to force authentication for external users while allowing those on the internal network access without authentication. I have followed:

http://wiki.contribs.org/Htaccess and various templates to give me:
<Directory /home/e-smith/files/ibays/Primary/html>
Order deny,allow
Deny from all
Allow from 192.168.3
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /etc/PrimaryPasswd
AuthGroupFile /dev/null
Require valid-user
Satisfy any
</Directory>

This results in both internal and external having access without authentication. I have tried many other examples also. Any help would be gratefully received.

Cheers Paul

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: httpd access control problem
« Reply #1 on: December 21, 2009, 10:32:47 AM »
betchern0t

Quote
I am trying to force authentication for external users while allowing those on the internal network access without authentication.

There is no need for extra htaccess configuration.
You can do that in server manager Information bay panel, by selecting the option for Public access via web or anonymous ftp = "Entire Internet (password required outside local network)"
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline betchern0t

  • *
  • 6
  • +0/-0
Re: httpd access control problem
« Reply #2 on: December 21, 2009, 11:37:09 AM »
thanks Mary,
                   what you say is certainly true for ibays however I have failed to find any controls for the primary site. Hence the fall back to httpd.conf settings.

Cheers Paul

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: httpd access control problem
« Reply #3 on: December 21, 2009, 03:09:08 PM »
betchern0t

Move your primary ibay content to another ibay eg mycontent.
Then point your main domain at the mycontent ibay in the Domains panel

Then select the web access setting for the ibay.
Primary is really no different to an ibay except it has preset configuration.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline betchern0t

  • *
  • 6
  • +0/-0
Re: httpd access control problem
« Reply #4 on: December 22, 2009, 07:34:26 AM »
Thanks Mary,
                    however that solution doesn't meet my requirements. I have figured out what was wrong, the fragment was inserting in the wrong place. httpd.conf cascades building up access requirements from top to bottom. This means my changes needed to be towards the bottom. In the case of 7.04 the template fragment needs to start with 91 or there abouts and not the 50 in the docco. I should have looked.

Cheers Paul

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd access control problem
« Reply #5 on: December 22, 2009, 07:14:48 PM »
In the case of 7.04
I think you mean 7.4, there has never been a 7.04.

the template fragment needs to start with 91 or there abouts and not the 50 in the docco. I should have looked
Where in the documentation did you find this? If that is the case we certainly need to fix it. Can you provide pointers?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline betchern0t

  • *
  • 6
  • +0/-0
Re: httpd access control problem
« Reply #6 on: December 22, 2009, 08:02:26 PM »
Sorry yes 7.4. The documentation I followed for the sme part was http://wiki.contribs.org/Htaccess. I would guess that the numbering of the templates would possibly change across revisions anyway so perhaps more explanation of how the templates work? I understood but didn't think to check.

Cheers Paul

Offline byte

  • *
  • 2,183
  • +2/-0
Re: httpd access control problem
« Reply #7 on: January 02, 2010, 04:01:57 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!