Tags:
create new tag
view all tags

Question

I am running TWiki and am using AuthType Basic with a passwd file for authentication to edit topics. I want to make the twiki server viewable to only people in my 10.0.0.* domain, but am unsure how to do that. I can't figure out what to do to get this wokring. I have an .htaccess file in my /twiki/bin folder with the following:

   AuthUserFile /twiki/data/.htpasswd
   AuthName "My Auth"
   AuthType Basic

 <Files ~ "[^/]*\.html$">
       SetHandler blabla
       #allow from all
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "viewauth">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "edit">
    #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "preview">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "save">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "attach">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "upload">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "rename">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "rdiffauth">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "manage">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "installpasswd">
   #       require valid-user
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

 <Files "*">
   #       allow from all
   order deny,allow
   deny from all
   allow from   10.70.60.*
   require valid-user
   satisfy any
 </Files>

My httpd.conf file is in the apache folder.

 <Directory "x:/twiki">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride All

   #
   # Controls who can get stuff from this server.

   Order Deny,Allow
   Deny from all
   Allow from 10.70.60.*
 </Directory>
 
 ScriptAlias /twiki/bin/ "C:/twiki/bin/"
 Alias /twiki/ "C:/twiki/"
 <Directory  "C:/twiki/bin/">
   # RD: Changed None to All in next line, to enable .htaccess
   AllowOverride All
   Order Deny,Allow
   Deny from all
   Allow from 10.70.60.*

   FileInfo
   Options  ExecCGI
   SetHandler cgi-script
 </Directory>

Any ideas on what I need to do?

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP
Web server: Apache 1.33
Perl version: 5.8.7
Client OS: Windows XP
Web Browser: Firefox 1.5
Categories: Authentication

-- TWikiGuest - 09 Jan 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

If you want to limit access to authenticated users from the 10.x.x.x network, you should change the require any into require all.

-- MarcFurrer - 11 Jan 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-03-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.