<...>

| The server starts w/o problems. Perfect.

OK, your at lest 90% done now.

<...>

| file:/usr/home/cap/apache_ASP/Apache-ASP-0.18/site/eg/index.htm

That wouldn't work, because then you don't communicate via Apache, nothing
gets executed, it's just like you do a normal cat on the file.

<...>

| http://localhost/eg
| http://10.249/60.152/eg
| and I get this on the screen of my browser:

OK, this is better.

| <Location /asp/>
|    SetHandler perl-script
|    PerlHandler Apache::ASP
| #   PerlSetVar Global /tmp
| </Location>

This would have urls like http://hostname/asp/* be executed via Apache::ASP,
your stuff is in /eg, so this won't work

| Same result. Only code on browsers.

As expected.

| Finaly I also attempted to add this configuration on my httdp.conf:
|
| <Perl>
|    Apache::ASP->Loader(
|    '/usr/local/etc/apache/htdocs/eg/', "(asp|htm)\$",
|    Global => 'usr/local/etc/apache/htdocs/eg/',
|    Debug => 1, # see output when starting apache
|    GlobalPackage => global.asa,
|    DynamicIncludes => 1,
|    StatINC => 1,
|    );
| </Perl>

First, you're missing a slash before usr/local. Than again, I don't now
where you get that code snippet from, things are much easier than this.

You have two options, either in your httpd.conf, add something like:

<Files *.asp>
  SetHandler perl-script
  PerlHandler Apache::ASP
  PerlSetVar Global /www/data/state
</Files>

(change the last directory to some place where your Apache UID can write,
this is where the session objects are stored)

Second option, leave your httpd.conf as is, without any Apache::ASP in it,
just with the "AllowOveride All" as you have it, and put the 5 lines as
above in the directory where your *.asp scripts are in a file called
.htaccess. So if your DocumentRoot is '/usr/local/etc/apache/htdocs' and
your eg directory with examples from Apache:::ASP resides there, save this
file to '/usr/local/etc/apache/htdocs/eg/.htaccess . Everything in .htaccess
will automatically apply to the complete directory tree thereunder.

Ime



Reply via email to