Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache WSGI documentation improvement #42

Open
mael2 opened this issue Jul 1, 2015 · 3 comments
Open

Apache WSGI documentation improvement #42

mael2 opened this issue Jul 1, 2015 · 3 comments

Comments

@mael2
Copy link

mael2 commented Jul 1, 2015

Hi,
thanks for producing this UI!

To make it work with apache I had to create a new virtual host since when I ran it as http://server/recoll the search would link the result to http://server/result... and not http://server/recoll/result.

Also I needed to add "Require all granted" in the directory context.
Running with apache 2.4.10 on Debian 8:

<VirtualHost *:80>
        ServerName volltextsuche
        DocumentRoot "/opt/recoll-webui-master/"
        CustomLog "/var/log/apache2/recoll_access.log" "%h %l %u %t \"%r\" %>s %b"
        ErrorLog "/var/log/apache2/recoll_error.log"
        ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var

        # recoll volltextsuche webui
        WSGIDaemonProcess recoll user=www-data group=users threads=5 display-name=%{GROUP} python-path=/opt/recoll-webui-master/
        WSGIScriptAlias / /opt/recoll-webui-master/webui-wsgi.py
        <Directory /opt/recoll-webui-master/>
                WSGIProcessGroup recoll
                Order allow,deny
                allow from all
                Require all granted
        </Directory>
</VirtualHost>

I also had an issue with the provided bottle webserver when trying to open a file with spaces in the filenames but I cannot reproduce it now. I remember it said permission denied in the logfile but the permissions are correct.

@frennkie
Copy link

I just set up recoll-webui in an Apache2.4 environment and also ran into the "require all granted" issue.
Very few new Apache installations will still use Apache2.2 so updating the Readme will probably help quite a few people.

@mjschuh
Copy link

mjschuh commented Oct 15, 2018

I found that if I use http://server/recoll/ to use recoll-webui, everything works great. If I leave off the trailing "/", it tries to go to http://server/result... which fails.

I suggest updating the documentation on the home page at https://github.com/koniu/recoll-webui to tell people to use http://server/recoll/ rather than http://server/recoll. It would also be helpful to include something in the apache configuration to rewrite or redirect requests to /recoll to go to /recoll/. I was unable to figure out what would rewrite or redirect requests to /recoll to go to /recoll/. It would be great if someone told us how to do this.

@koniu
Copy link
Owner

koniu commented Oct 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants