Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Sep 21, 2002, 06:42 AM
cralim cralim is offline
New Member
 
Member Since: Sep 2002
Posts: 2
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.


advertisement
  #2  
Old Sep 21, 2002, 08:18 AM
cralim cralim is offline
New Member
 
Member Since: Sep 2002
Posts: 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  
Old Oct 28, 2002, 02:57 PM
DocJohn's Avatar
DocJohn DocJohn is online now
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

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
Views: 371

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a problem SongBirdandDaisy Self Injury 6 May 05, 2012 12:25 PM
do i have a problem? sheepish Personality Place 2 Jul 25, 2007 12:43 AM
I have a problem... Christina86 Psychotherapy 34 Apr 22, 2007 11:45 AM
i have a problem carole_1 Other Mental Health Discussion 8 May 26, 2006 03:53 AM
Eye problem Other Mental Health Discussion 16 Apr 29, 2005 01:09 PM


All times are GMT -5. The time now is 08:40 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.