logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Problem executing CGI script from Alias directory
Author
memnoch



Joined: 01 Jan 2008
Posts: 8

PostPosted: Tue 19 Feb '08 19:27    Post subject: Problem executing CGI script from Alias directory Reply with quote

Greetings Apache Gurus,

I'm not sure if this is a mod_perl issue or just an Apache configuration issue. Please redirect me if appropriate.

My Configuration:
Apache/2.2.8 (Win32)
Perl: v5.8.8
mod_perl 2.0
I have also followed all the directions through the Registry Scripts section at: http://perl.apache.org/docs/2.0/os/win32/config.html

Here's The Problem
I have several Perl scripts and a module in C:/Apache2/cgi-bin/ridhwan/. Each script has a submit button that will display a new page. All my scripts work fine when accessed from this type of URL:

http://localhost/cgi-bin/ridhwan/script_name.pl

I would like to use mod_perl to handle these scripts. So, rather than set up a new directory on the filesystem, I have put the following in the httpd.conf file. Note that it is supposed to remove the /cgi-bin/ part of the path:

Code:
Alias /ridhwan/ "C:/Apache2/cgi-bin/ridhwan/"
<Location /ridhwan>
   SetHandler perl-script
   PerlResponseHandler ModPerl::Registry
   Options +ExecCGI
   PerlOptions +ParseHeaders
</Location>


The result is that when I click on a URL like the following (i.e. missing the the /cgi-bin/):

http://localhost/ridhwan/script_name.pl

the script displays fineā€¦.but clicking the submit button doesn't do anything....it just redisplays the same page. But it's the *same script* as in the first link. It's just being accessed through the alias. So, I don't understand why it doesn't work.

Any idea what's wrong?

Thank you,
memnoch


Last edited by memnoch on Tue 19 Feb '08 22:50; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Tue 19 Feb '08 21:59    Post subject: Reply with quote

Isn't it the same as Problem finding perl library when using Alias - ALL SET! ??
Back to top
memnoch



Joined: 01 Jan 2008
Posts: 8

PostPosted: Tue 19 Feb '08 22:36    Post subject: Reply with quote

The previous posting was really about being unable to find the library. The issue of this posting was tacked on at the end of it because I didn't know that they were different issues. The first issue about finding the library is solved. This new issue is about the scripts displaying, but not working.

Rather than update what was already a confusing posting, I thought it best to close that one and make a simplified new one. I would have deleted the previous one, but I couldn't find a way to do it. Feel free to delete it if you like.
Back to top


Reply to topic   Topic: Problem executing CGI script from Alias directory View previous topic :: View next topic
Post new topic   Forum Index -> Apache