[Moin-user] port disappears on certain urls -> non-default port, HTTP_HOST = varying

Ryan Wilcox RWilcox at olenick.com
Tue Mar 4 09:14:09 EST 2003


Joshua,

I to have tried to reproduce this error using Apache and MoinMoin 1.0
with no luck (also on random port). Is there part of your basic config
that I am missing other than thttpd?

Ryan Wilcox



--- Joshua Rodman <joshua_rodman at yahoo.com> wrote:
> I have a possibly unusual config.
> I'm running thttpd, and have told it to respond to whatever 
> server name it happens to receive.
> 
> Thus, http://myserver.mydomain.com works, as does http://localhost
> (in the right circumstances).
> 
> I've got it running on a nonstandard port though, so the following
> are the real urls: http://myserver.mydomain.com:81,
> http://localhost:81
> 
> HTTP_HOST gets sent as myserver.mydomain.com and localhost,
> respectively,
> which appears to be acceptable for the HTTP standard, despite
> the nonstandard port number.
> 
> SERVER_NAME is set to 'myserver', which may be wrong, but I believe 
> is not relevant.
> 
> SERVER_PORT is set to '81'.
> 
> Some urls, like a few involving the AttachFile feature, make use
> of the getBaseURL and/or getQualifiedURL methods in the webapi 
> module.  On my system this interface returns urls like:
> 
> http://myserver.mydomain.com/blahblah/
> 
>   or
> 
> http://localhost/blahblah/
> 
> Since these head back to port 80, they don't work.
> 
> The relvant code in getQualifiedURL is as follows:
> 

I also use a non-standard port (55555 for security reasons) and thought
I would have the same problem, but am unable to reproduce it using
Apache and the current MoinMoin CVS.

I uploaded a logo.jpg to WikiSandBox, and refered to it as:
   attachment:logo.jpg
and on another page:
   attachment:WikiSandBox/logo.jpg

Both reproduce the requested image. Perhaps a thttpd problem or I don't
understand how to reproduce it?

Roger haase


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The
debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost
and 
disoriented. TotalView can help you find your way. Available on major
UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Moin-user mailing list
Moin-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user




More information about the Moin-user mailing list