Problem with url paths

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Problem with url paths

Post by Thunderstone »



I just installed Webinator and have downloaded and setup all four of the
example search engines interfaces that you have. I have the same
problem with all four. I use the following path to access one of the
examples:

http://server-name/cgi-bin/texis/webinator/search/

The problem is that the action=$urlroot that is used to submit the
search form comes out as:

action=/cgi-bin/texis/webinator/search/webinator/search

instead of:

action=/cgi-bin/texis/webinator/search/

So instead of using the $urlroot in the source I just typed the correct
path. But the problem is the same thing happens with the $url variable
that links to stuff like the next 10 pages, show linkage, etc...So am
example link to go to the next 10 pages comes out as:

http://server-name/cgi-bin/texis/webina ... arch/+Dww_
qtGn5DnBxzmAwwwq_qqmx/

(notice the /webinator/search/webinator/search)

This gives me and error since it can't find the search file. I can't
just type in a value for the $url variable in the source code, so I
can't rig this one.

Do you have any ideas why this would happen? If is makes a difference I
am running Apache on an NT4 server.

Thanks,
matt



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Problem with url paths

Post by Thunderstone »





The web server is incorrectly setting $SCRIPT_NAME in the CGI
environment: it's leaving the value of $PATH_INFO attached, instead of
setting $SCRIPT_NAME to the URL path to the CGI executable alone. So
when Vortex processes $SCRIPT_NAME and $PATH_INFO together to form a
new URL, "/webinator/search" gets inserted twice.

Try to find a version of Apache or another web server that sets the
CGI environment variables correctly. Note that the NT version of
Apache is currently considered not as stable as other platforms'
versions; it's still in beta.

-Kai


Post Reply