----- Original Message -----
From: "Johnno" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 17, 2002 9:19 PM
Subject: [Perl-unix-users] Apache and Perl


> It this possible..  if find out what address was entered into the web
> browers from apache...
>
> this is so that i can run a script to pickup a url and redirect it
> somewhere...
>
> otherwise i am going to have heaps of dirs with one index file that does the
> redirect..
>

 from the CGI module
    path_info()
        Returns additional path information from the script URL. E.G.
        fetching /cgi-bin/your_script/additional/stuff will result in
        $query->path_info() returning "/additional/stuff".

    path_translated()
        As per path_info() but returns the additional path information
        translated into a physical path, e.g.
        "/usr/local/etc/httpd/htdocs/additional/stuff".

What you'll want to do is make sure "OptionExec CGI" is turned on for the
directory you need and have apache call your cgi script, either via a 404 or
you can include your perl script in your default document types that apache
will attempt to grab.

If you're using a service that only allows .shtml files to include stuff then
in that file, call your cgi script from index.shtml from whatever directory
you would like to make your root.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to