|
PITS /
00337Summary: login doesn't respect ScriptUrl
Created: 2005-02-18 09:02
Status: Active
Category: Bug
Assigned:
Priority: 51
Version: 2.0.beta21 pmwiki-2.2.0-beta16
OS: LAMP Solaris
Description:
My wiki resides in "my.service.provider.net/mysite/mywiki", and I rewrite the output so it is avaibale under "my.domain.com". Works fine, since I set Editing is password-protected, and after logging in it insists to redirect to my.domain.com/mywiki - which doesn't exist. pmwiki doesn't respect the ScriptUrl here. I helped myself with a symbolic link inside pmwiki
PmWiki always respects ScriptUrl. Can you send me a copy of your config.php, or a URL where I can see this? --Pm different person here seeing this behavior: Here is a snip of the source of my login page to demonstrate the issue.
<snip>-------------------------------------------------------------
...
</li><li class="print"><a accesskey="" rel="nofollow" class="wikilink" href="http://almost.zfin.org/doc/index.cgi?n=Main.HomePage?action=print">Print</a>
</li></ul>
</div>
<!--PageTitleFmt-->
<div id="wikititle">
<div class="pagegroup"><a href="http://almost.zfin.org/doc/index.cgi?n=Main">Main</a> /</div>
<h1 class="pagetitle">HomePage</h1></div>
<!--PageText-->
<div id="wikitext">
<p><strong>Password required</strong>
</p>
<form action="/%7Ezfinadmn/68f1abb51ad0820a3bb035dfe71007ad/index.cgi?n=Main.HomePage?action=edit" method="post" name="authform">
<p>Name: <input name="authid" class="inputbox" type="text"><br>Password: <input name="authpw" class="inputbox" type="password">
<input value="OK" class="inputbutton" type="submit">
</p></form>
...
</snip>------------------------------------------------------------------------------
notice how the first links <a href="http://almost.zfin.org/doc/index.cgi(approve links)?... differ from the form action link <form action=""/%7Ezfinadmn/68f1abb51ad0820a3bb035dfe71007ad/index.cgi?... the first is where the wiki appears (correct) the second is a munged fragment of where the wiki is. (incorrect) my .../68f1abb51ad0820a3bb035dfe71007ad/local/config.php has <?php if (!defined('PmWiki')) exit();
my almost.zfin.org httpd.conf has ... ProxyPass /doc/ https://www.cs.uoregon.edu/~zfinadmn/68f1abb51ad0820a3bb035dfe71007ad/(approve links) ProxyPassReverse /doc/ https://www.cs.uoregon.edu/~zfinadmn/68f1abb51ad0820a3bb035dfe71007ad/(approve links) ... everything seems to works (navigation wise) until I try to login to edit, then of course the url in the <form action= goes nowhere. any thoughts on how to proceed are welcome thanks |