|
How do I add .htaccess access restrictions to an OSQA site? I am using mod_wsgi with Apache. |
|
usually you'll have to put it inside a location tag. Here's an example we use in some demo sites:
|
|
You'll have to do the configurations in the virtual host file. You can use the same syntax as a plain .htaccess file. I get the following error Syntax error on line 18 of /home/turian/webapps/.../osqa.conf: AuthType not allowed here
(12 Jul '10, 20:28)
Joseph
And what's on line 18 of the osqa.conf file? And where did that osqa.conf file came from?
(12 Jul '10, 22:06)
Hernani Cerq... ♦♦
1
Also, did you read the apache docs? You can try here http://httpd.apache.org/docs/2.0/howto/auth.html
(12 Jul '10, 22:07)
Hernani Cerq... ♦♦
I checked out the apache docs, but it doesn't really tell me where I can and can't put AuthType. Line 18 say: AuthType Basic osqa.conf is included by httpd.conf, and includes my OSQA virtual host definitions.
(15 Jul '10, 11:39)
Joseph
|