Theoderich / mod-auth-token

Automatically exported from code.google.com/p/mod-auth-token
Apache License 2.0
1 stars 0 forks source link

htaccess usage #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. copy the AuthToken* parts into the .htaccess file
2. download a file
3.

What is the expected output? What do you see instead?
Download/script execution starts.
Instead, I get a 500 Server Error page.

What version of the product are you using? On what operating system?
Apache 2.2.9 on Solaris 10

Please provide any additional information below.
Is it possible to use this module from within the .htaccess file? I keep
getting 500 errors, if I copy the text inside from the <Location> block
into the .htaccess file. Any hint is welcome.

Original issue reported on code.google.com by jng...@googlemail.com on 11 Mar 2010 at 1:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hello, can you please post your httpd.conf  ?  Also please note that you need to
override the defaults settings ( Apache don't let you put custom configuration 
on
.htacess files).

You can find more http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride

Also i would recommend to specify the configuration in the main conf file. 

Original comment by teixeira...@gmail.com on 18 Mar 2010 at 4:55

GoogleCodeExporter commented 8 years ago

Original comment by teixeira...@gmail.com on 20 Mar 2010 at 11:44

GoogleCodeExporter commented 8 years ago
Hello,

I can't really post my httpd.conf here, because it is huge - but I found out 
why I
was getting a 500 error and I appended a patch for that. Allowoverride is set to
"all" and AuthType Basic for example works perfectly.

But there is another problem: I can't figure out why the plugin ignores the 
.htaccess
directives.  As I understand it ap_get_module_config() takes care of loading the
configuration, no matter where it is located.
I debugged it and found out that for example the conf->secret is not set when I 
use
the .htaccess.

Do you have any advice?

Original comment by jng...@googlemail.com on 25 Mar 2010 at 4:12

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hello, that's because you can't have the <location / > tag in a .htacess file, 
this
is not permitted by Apache. So you have to put in on your configuration file.

Original comment by teixeira...@gmail.com on 29 Mar 2010 at 9:41