View Single Post
Old 10-03-2013, 04:52 PM   #2
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Funny, I recently tried exactly the same just to get rid of the need to enter a portnumber. Although I only tried as reverse proxy, haven't tried the in-process route using WSGI

Here's what I did
in httpd.conf made sure mod_proxy.so and mod_proxy_http.so are uncommented.
in mine mod_proxy_rewrite.so was already uncommented so do not know if it is required

then in the extra folder I modified http-proxy.conf and added these lines
Code:
# OPDS
ProxyPass /opds http://127.0.0.1:8080/opds
ProxyPassReverse /opds  http://127.0.0.1:8080/opds

# Web Interface
ProxyPass /browse http://127.0.0.1:8080/browse
ProxyPassReverse /browse http://127.0.0.1:8080/browse

# 'Mobile' Web Interface
ProxyPass /mobile http://127.0.0.1:8080/mobile
ProxyPassReverse /mobile http://127.0.0.1:8080/mobile

# Required paths
ProxyPass /static http://127.0.0.1:8080/static
ProxyPassReverse /static http://127.0.0.1:8080/static
ProxyPass /get http://127.0.0.1:8080/get
ProxyPassReverse /get http://127.0.0.1:8080/get
and that was all, restarted Apache and now if I navigate in Stanza to localhost/opds I get to see Calibre's OPDS output and if I use localhost/browse in a browser I can use the web-interface and if I want to use web-interface on my phone I visit localhost/mobile

In that same file is likely a section <proxy *>

I've changed that from the default restrictive order deny, allow to

Order allow,deny
Allow from all

for testing purposes, so make sure to modify this to your requirements if you restrict access to only selected users.

Last edited by At_Libitum; 10-03-2013 at 08:24 PM.
At_Libitum is offline   Reply With Quote