Tone, Change this: <FORM ACTION="<!--#var SCRIPT_NAME--><!--#var PATH_INFO--><!--#if QUERY_STRING-->?<!--#var QUERY_STRING--><!--#/if-->"> to: <FORM ACTION="<dtml-var URL>"> I had exactly the same problem this morning, works for me ymmv. hth Phil ----- Original Message ----- From: "Tony McDonald" <tony.mcdonald@ncl.ac.uk> To: "Zope" <zope@zope.org> Sent: Thursday, July 19, 2001 6:36 PM Subject: [Zope] VHM not recognizing UserDB query strings... (PATH_INFO)
Hi all, I've almost got my authentication scheme working. Almost.
I use UserDB and in the docLogin part of that product (ie the thing that gives you a nice form in the middle of the browser is this)
<FORM ACTION="<!--#var SCRIPT_NAME--><!--#var PATH_INFO--><!--#if QUERY_STRING-->?<!--#var QUERY_STRING--><!--#/if-->"
I'm using VHM and it's been really handy and really easy to set up, but now when I look at the source of the form I see
<FORM
ACTION="/VirtualHostBase/http/dummy27.ncl.ac.uk:80/VirtualHostRoot/medfac/te
st_get_topics2" METHOD="POST">
Whereas I should get <FORM ACTION="/medfac/test_get_topics2" METHOD="POST">
Can someone point out what is going wrong. I guess it's SCRIPT_NAME or PATH_INFO, but there's no mention of them in VirtualHostMonster.py in SiteAccess.
After using REQUEST, it appears to be PATH_INFO.
The Apache directives I'm using are <VirtualHost 192.168.1.27:80> ServerAdmin tony.mcdonald@ncl.ac.uk ServerName dummy27.ncl.ac.uk DocumentRoot "/home/zope/Zope-2.3.3-src/static_content" ErrorLog "/home/zope/Zope-2.3.3-src/var/error_log" TransferLog "/home/zope/Zope-2.3.3-src/var/access_log" CustomLog "/home/zope/Zope-2.3.3-src/var/referer_log" referer CustomLog "/home/zope/Zope-2.3.3-src/var/agent_log" agent RewriteEngine on RewriteRule ^/static_content - [L] RewriteRule ^/(.*)
http://bogus.ncl.ac.uk:8080/VirtualHostBase/http/dummy27.ncl.ac.uk:80/Virtua
lHostRoot/$1 [P,L] </VirtualHost>
Should I just edit out the PATH_INFO stuff in the form?
Thanks. Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )