I have read the previous posts on this forum and their solutions didn't work. I have a fresh install of Apache 2.2 on windows RC7. I have tried this giude:
http://sabnzbd.wikidot.com/howto-apache
but it doesn't work for sabnzbd. It does work for uTorrent though:
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8081/gui
ProxyPassReverse http://localhost:8081/gui
I have enabled the following modules:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
It is probably overkill, which ones do I actually need to get sabnzbd working with this proxy pass through?
Here is another bit of code I tried:
ProxyPass /sabnzbd http://127.0.0.1:8080/sabnzbd
ProxyPassReverse /sabnzbd http://127.0.0.1:8080/sabnzbd
ProxyPass /gui http://127.0.0.1:8081/gui
ProxyPassReverse /gui http://127.0.0.1:8081/gui
The gui one, or uTorrent, works but the sabnzbd doesn't. I always get a 503 Service Temporarily Unavailable message with the sab.
Thanks for any advice/help/comments!
Jacob
Sabnzbd behind Apache 2.2 Server
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: Sabnzbd behind Apache 2.2 Server
Did you tell SABnzbd to listen to 127.0.0.1:8080 ?
Re: Sabnzbd behind Apache 2.2 Server
Yeah, Sab listens to 8080.
Interestingly, when I type these into a browser:
http://localhost:8080/sabnzbd works
http://127.0.0.1:8080/sabnzbd doesn't work
http://localhost:8081/gui works
http://127.0.0.1:8081/gui works
Not sure why 127.0.0.1 doesn't work for sab. I still get the same error message if I replace all the 127.0.0.1 with localhost in httpd.conf.
ProxyPass /sabnzbd http://localhost:8080/sabnzbd
ProxyPassReverse /sabnzbd http://localhost:8080/sabnzbd
ProxyPass /gui http://localhost:8081/gui
ProxyPassReverse /gui http://localhost:8081/gui
The above and below still return a 503 service temporarily unavailable error for sabnzbd but work for utorrent.
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8081/gui
ProxyPassReverse http://localhost:8081/gui
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
I can't think of any reason why 127.0.0.1:8080/sabnzbd will not work, but localhost:8080/sabnzbd works.
Interestingly, when I type these into a browser:
http://localhost:8080/sabnzbd works
http://127.0.0.1:8080/sabnzbd doesn't work
http://localhost:8081/gui works
http://127.0.0.1:8081/gui works
Not sure why 127.0.0.1 doesn't work for sab. I still get the same error message if I replace all the 127.0.0.1 with localhost in httpd.conf.
ProxyPass /sabnzbd http://localhost:8080/sabnzbd
ProxyPassReverse /sabnzbd http://localhost:8080/sabnzbd
ProxyPass /gui http://localhost:8081/gui
ProxyPassReverse /gui http://localhost:8081/gui
The above and below still return a 503 service temporarily unavailable error for sabnzbd but work for utorrent.
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8081/gui
ProxyPassReverse http://localhost:8081/gui
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
I can't think of any reason why 127.0.0.1:8080/sabnzbd will not work, but localhost:8080/sabnzbd works.
Last edited by klox on May 30th, 2009, 1:20 pm, edited 1 time in total.
Re: Sabnzbd behind Apache 2.2 Server
On my Linux box I use the exact same method and it works fine.
I'm not sure if a Windows system would use exactly the same configuration.
I do get the same error when I stop and start SABnzbd. It takes Apache a couple
of minutes to find out that SABnzbd is back.
I'm not sure if a Windows system would use exactly the same configuration.
I do get the same error when I stop and start SABnzbd. It takes Apache a couple
of minutes to find out that SABnzbd is back.
Re: Sabnzbd behind Apache 2.2 Server
Yeah time didn't help. I also tried switching out localhost and 127.0.0.1 with my local ip, 192.168.1.2. So:
192.168.1.2:8080/sabnzbd doesn't work
192.168.1.2:8081/gui works
192.168.1.2/sabnzbd doesn't work
192.168.1.2/gui work
Same results for either just ProxyPass/Reverse and using the Location directive.
192.168.1.2:8080/sabnzbd doesn't work
192.168.1.2:8081/gui works
192.168.1.2/sabnzbd doesn't work
192.168.1.2/gui work
Same results for either just ProxyPass/Reverse and using the Location directive.
Re: Sabnzbd behind Apache 2.2 Server
localhost on Vista and windows 7 does not resolve to 127.0.0.1.
It resolves to the ipv6 address ::1
This is how it should be, we rely on your operating systems to resolve to the correct address.
Give SABnzbd a blank host under config>general (delete localhost, leaving it blank), restart sabnzbd then try acessing http://192.168.1.2:8080/sabnzbd again
It resolves to the ipv6 address ::1
This is how it should be, we rely on your operating systems to resolve to the correct address.
Give SABnzbd a blank host under config>general (delete localhost, leaving it blank), restart sabnzbd then try acessing http://192.168.1.2:8080/sabnzbd again
Re: Sabnzbd behind Apache 2.2 Server
Thanks a lot for your help! Once you told me that I went to
C:/Windows/system32/drivers/etc/hosts
and uncommented "127.0.0.1 localhost"
Now it is resolving the correct ip in apache so:
192.168.1.2/sabnzbd works
127.0.0.1/sabnzbd works
localhost/sabnzbd works
and the same with :8080 inserted all work
I am still confused why uTorrent was working, because all 6 of the previous ways were working.
I am having shypike's thing where it takes a minute to find sab after I reboot windows. It hasn't occurred when restarting sab/apache both/individually.
Thanks again for all your help!
Oh yeah, the error in the logs after restarting windows when trying to access localhost/sabnzbd:
"[Mon Jun 01 08:17:22 2009] [error] proxy: HTTP: disabled connection for (localhost)"
I just kept refreshing the request and it took exactly a minute before it finally returned the sab page. I haven't done any multiple tests though.
C:/Windows/system32/drivers/etc/hosts
and uncommented "127.0.0.1 localhost"
Now it is resolving the correct ip in apache so:
192.168.1.2/sabnzbd works
127.0.0.1/sabnzbd works
localhost/sabnzbd works
and the same with :8080 inserted all work
I am still confused why uTorrent was working, because all 6 of the previous ways were working.
I am having shypike's thing where it takes a minute to find sab after I reboot windows. It hasn't occurred when restarting sab/apache both/individually.
Thanks again for all your help!
Oh yeah, the error in the logs after restarting windows when trying to access localhost/sabnzbd:
"[Mon Jun 01 08:17:22 2009] [error] proxy: HTTP: disabled connection for (localhost)"
I just kept refreshing the request and it took exactly a minute before it finally returned the sab page. I haven't done any multiple tests though.
Last edited by klox on June 1st, 2009, 8:32 am, edited 1 time in total.


