Page 1 of 1

wiki edit: sabnzbd & apache2

Posted: March 28th, 2013, 10:20 pm
by Mr5o1
So... not really a bug, but I thought I'd bring this to someone's attention in case it saves someone some time.

in this page: http://wiki.sabnzbd.org/howto-apache

I couldn't get the proxy to work until I added trailing slashes, so this:

Code: Select all

ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
becomes this:

Code: Select all

ProxyPass http://localhost:8080/sabnzbd/
ProxyPassReverse http://localhost:8080/sabnzbd/
without the trailing slashes I get a redirect loop.

Also.. and I guess this is maybe a personal thing, but it might be better to direct users to using seperate config files rather than just stashing everything in httpd.conf, but that's probably just me.

Thanks.

Re: wiki edit: sabnzbd & apache2

Posted: March 29th, 2013, 4:01 am
by shypike
Mr5o1 wrote:Also.. and I guess this is maybe a personal thing, but it might be better to direct users to using seperate config files rather than just stashing everything in httpd.conf, but that's probably just me.
What the Wiki shows is just an example of how to get it working. It's not an advice on how to setup an Apache server properly.
I'm surprised that you need the trailing slashes, I've been using the original example for years.
Any thoughts on why it's needed?

Re: wiki edit: sabnzbd & apache2

Posted: March 29th, 2013, 4:10 am
by Mr5o1
Actually on second thoughts maybe it's a special case, and doesn't really require the edit.

I'm using a vhost named sab. The url on my LAN is http://sab rather than http://server/sab

So yeah, now I've had time to think about it, I think it's because my proxy lines were using the root path "/". In any case, it was definitely the trailing slash that resolved the problem.