beville / ComicStreamer

Apache License 2.0
166 stars 92 forks source link

webroot option #24

Open nbonfire opened 9 years ago

nbonfire commented 9 years ago

I'd like to put this behind a reverse proxy, so a webroot option in the config would be nice.

For example, https://myserver.com/comicstreamer would redirect through nginx to http://myserver.local:32500/comicstreamer

Right now that doesnt work.

bonebox commented 8 years ago

What does your conf entry look like now?

frameset commented 8 years ago

I should clarify. When I have no webroot set, I can reach it fine via http://domain.name:32500/, but when I use the setting "webroot = "/cstreamer/"" I get a 404 error like the below:

Traceback (most recent call last): File "/home/mark/.local/lib/python2.7/site-packages/tornado/web.py", line 1422, in _execute result = self.prepare() File "/home/mark/.local/lib/python2.7/site-packages/tornado/web.py", line 2149, in prepare raise HTTPError(self._status_code) HTTPError: HTTP 404: Not Found

config file is as follows: [general] port = 32500 install_id = 4f186a56047048cd8b17ab22a9fc8bf4 folder_list = /media/plex/Comics, launch_browser = False first_run = False webroot = /cstreamer/

bonebox commented 8 years ago

Try configuring your webroot in ComicStreamer without the / on the end, i.e. /cstreamer. And that the port in your apache conf is 32500 and not 325000 (assuming you already made that change, but just making sure).

frameset commented 8 years ago

That's done it, the trailing slash seemed to be causing it. Thanks for your help.