Description

The titlesearch action fails if using wsgi with ssl. The page is found, but the URL is wrong. The prefix the engine creates is http and not https, which it should be.

Steps to reproduce

Our wiki is secured with SSL. Without WSGI everything is fine.

When switching to WSGI, the wiki performs well, but the titlesearch does not give URL with https, only http. Other functions are OK.

Please see our apache config below. If we comment the WSGIScriptAlias and uncomment the ScriptAlias everything is as expected.

Apache Configuration

NameVirtualHost *:443
<VirtualHost *:443>
    ServerName ilz.tremel-computer.de
...
    # MoinMoin 01.10.2008
    # this is for icons, css, js (and must match url_prefix from wiki config):
    Alias /moin_static172   "/usr/share/moin/htdocs/"

    # this is the URL http://servername/mywiki/ you will use later to invoke moin:
    # ScriptAlias /adminwiki "/var/lib/moin/adminwiki/cgi-bin/moin.cgi"
    WSGIScriptAlias /adminwiki "/var/lib/moin/adminwiki/cgi-bin/moin.wsgi"

    # create some wsgi daemons
    WSGIDaemonProcess moin user=www-data group=www-data home=/home/www-data processes=2 threads=10 maximum-requests=1000 umask=0007 display-name=wsgi-moin
    # use the daemons we defined above to process requests!
    WSGIProcessGroup moin

    <Directory /usr/share/moin/htdocs/>
            Options +FollowSymLinks
            AllowOverride All
            order allow,deny
            allow from all
    </Directory>
    <Directory /var/lib/moin/adminwiki/>
            AuthType Basic
            AuthName "Tremel Wiki ist nur mit Passwort zugänglich"
            AuthUserFile /var/lib/.......
            # AuthGroupFile /www/passwords/group.file
            Require valid-user
    </Directory>
...

Example

Component selection

Details

MoinMoin Version

1.7.2

OS and Version

Debian etch/amd64

Python Version

2.4.4-2

Server Setup

Apache 2.2.3-4+etch5

Server Details

libapache2-mod-wsgi Version 2.3-1~bpo40+1

Language you are using the wiki in (set in the browser/UserPreferences)

german

Workaround

Add the missing s to the URL e.g. https://ilz.tremel-computer.de/adminwiki/HelpOnActions instead of http://ilz.tremel-computer.de/adminwiki/HelpOnActions

Discussion

I tried it here on moinmo.in and all URLs in the search results just start with /PageName... - they do not include any protocol or server specification. This is moin 1.8.0rc, though.

ok, sorry I can't help. Only know that I'm using a Debian Server and running a farm moinmoin with http and https (and for every ssl I use different ip adresses). a few other ideas:

I tested the fixes http://hg.moinmo.in/moin/1.7/rev/3e019f6ae381 plus http://hg.moinmo.in/moin/1.7/rev/bf543d0796c8 and they worked for me. Thank you for this wonderful example of good open source support! -- DieterTremel

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/TitleSearchFailsWsgiSSL (last edited 2008-10-13 07:05:40 by p5B15B186)