At 11:49 PM 11/30/99 -0800, Joshua Chamas wrote:
>I glad you got it working.  It can be quite an ordeal
>the first time. :(  The .htaccess doesn't do anything
>unless you have configured somewhere to enable .htaccess
>with
>
>   AllowOverride All
>
>I tried to put this in some visible place, check out:
>http://www.nodeworks.com/asp/config.html , also the
>CONFIG section of 'perldoc Apache::ASP'

I think the doc is misleading.

The Following Does not work
<Location /pasp>
         DirectoryIndex index.html index.shtml index.cgi
         SetHandler perl-script
         PerlHandler Apache::ASP
         PerlSetVar Global /tmp/asp
</Location>

But This does work
<Location /pasp>
         DirectoryIndex index.html index.shtml index.cgi
         SetHandler perl-script
         PerlHandler Apache::ASP
#       PerlSetVar Global /tmp/asp
</Location>

The Directory block
<Directory /usr/home/httpd/pasp>
         AllowOverride All
         DirectoryIndex index.html index.shtml index.cgi
         Options ExecCGI
</Directory>
remained unchanged as did the directory contents

Why the PerlSetVar in the <Location> takes precedence over the .htaccess 
file, I do not know.  What is the order of precedence of <Directory> 
<Location> and .htaccess?  Or is it a precedence problem between the <Files 
~ (\.htm)> block in the .htaccess file and the <Location> block in the 
server config?

Anyway, I think it might be helpful to future ASP newbies if you removed 
the "PerlSetVar Global /tmp" from the <Location> block in your example.



N. Blaine Morgan      Given God and time nothing is impossible
[EMAIL PROTECTED]

-=> Imagination is more important than knowledge.  -Albert Einstein <=- 

Reply via email to