![]() |
FAQ/Help |
Calendar |
Search |
#1
|
|||
|
|||
Hi, I'm wanting to use POD with $pod_usequery=0 - ie to have requests in the ../pod/pod.cgi/Arts/Entertainment manner.
But for the life of me I'm juggling it around, and it just doesn't work for me, the error I get on the resulting page is: POD encountered the following error while trying to run: 404 Not Found Attempted retrieval URL: http://dmoz.org/pod/pod.cgi I'm using v1.87, and here's the top part of my podvars.pm ## Name of your script. For example, 'pod.cgi' or 'dir' $pod_progname="pod.cgi"; ## URL path to your script (ie /cgi-bin/pod/) $pod_urlpath="/pod/"; ## Full path and script name ## Replace with #$pod_fullpath="$ENV{'SCRIPT_NAME'}"; ## to increase portability of the script. If you do this, you can ## ignore the settings of the two above variables. $pod_fullpath="$pod_urlpath$pod_progname"; ## To log searches, insert the full path and filename of your logfile ## into pod_logging. Comment it out for no logging (default) #$pod_logging = "/home/lib/httpd/logs/pod_searches.log"; ## Where your header.html and footer.html files are located $pod_templatedir = "."; ## This variable changes the operation of the script drastically. ## If pod_usequery=1 then POD will expect to be called in the format ## of .../pod.cgi?dir=/Arts/Entertainment ## If pod_usequery=0 then POD will expect to be called in the format ## of .../pod.cgi/Arts/Entertainment $pod_usequery=0; Am I missing something - do I need a RewriteRule in the httpd.conf perhaps? S. |
#2
|
|||
|
|||
I think I fixed it - it seems that PATH_INFO is sometimes not correctly populated - depending on the server, and the apache version. For example, it worked fine on one of my servers, a RedHat 7.2 box, but not on my RaQ3.
The solution is to use the more reliable REQUEST_URI, really simply, something like this: #$pod_dir=$ENV{'PATH_INFO'}; $pod_dir=$ENV{'REQUEST_URI'}; $pod_dir =~ s/$pod_fullpath(.*)/$1/ ; It's not perfect, but it works for me, yippee! |
#3
|
||||
|
||||
Thanks for finding the solution that works for you! I've added your helpful hint to the POD main program file, where that variable is defined.
__________________
Don't throw away your shot. |
Reply |
|
![]() |
||||
Thread | Forum | |||
Having a problem | Self Injury | |||
do i have a problem? | Personality Place | |||
I have a problem... | Psychotherapy | |||
i have a problem | Other Mental Health Discussion | |||
Eye problem | Other Mental Health Discussion |