siyuan
siyuan copied to clipboard
Apache WSGI documentation improvement
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.
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.
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.
Cheers for suggestions folks, I agree that docs could do with some
improvements. Feel free to submit a pull request with changes to README
.
A generic config file for Apache WSGI to go into examples/
would also be
great ;)
On Mon, 15 Oct 2018 at 02:28, mjschuh [email protected] wrote:
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 /recoll to /recoll/.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/koniu/recoll-webui/issues/42#issuecomment-429682087, or mute the thread https://github.com/notifications/unsubscribe-auth/AABwRDHBsMv981elifd-VJ3lBAcxkMP6ks5uk-TIgaJpZM4FPlCz .