Login error when usy proxy

Get help with all aspects of SABnzbd
Forum rules
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.
Post Reply
B3rt
Newbie
Newbie
Posts: 5
Joined: September 27th, 2008, 8:18 pm

Login error when usy proxy

Post by B3rt »

Hi,

I want to access sabnzb using a subdomain of my private domain, for example my domain name is: mydomain.com
I which to access the interface by http://sab.mydomain.com

I run a apache 2 webserver and installed mod proxy, I configured the mod proxy and it works but I get an error when I log in, this is what I get:
404 Not Found

The path '/sabnzbd/sabnzbd/' was not found.

Page handler: "The path '/sabnzbd/sabnzbd/' was not found."
Traceback (most recent call last):
  File "/home/server/SABnzbd/cherrypy/_cphttptools.py", line 121, in _run
    self.main()
  File "/home/server/SABnzbd/cherrypy/_cphttptools.py", line 256, in main
    page_handler, object_path, virtual_path = self.mapPathToObject(path)
  File "/home/server/SABnzbd/cherrypy/_cphttptools.py", line 326, in mapPathToObject
    raise cherrypy.NotFound(objectpath)
NotFound: 404
When I go back to the url I am logged in normally, so it wil log me in but it redirects me to the wrong page, without modproxy there is NO problem!

This is my httpd conf file for apache 2 (running on a ubuntu server)

    ServerName sab.mydomain.com
   
        Order deny,allow
        Allow from all
   

    ProxyPass / http://192.168.1.2:8080/sabnzbd/
    ProxyPassReverse / http://192.168.1.2:8080/sabnzbd
I must specify a virtualhost box and a servername otherwise my subdomain wil not work.

Can someone please give me some advise how to solve this error which I receive when I log in (after entering username/pass), sabnzb is further working perfectly, the only problem I am havind is the displayed error when logging in.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Login error when usy proxy

Post by switch »

The /sabnzbd/ in the url is currently hardcoded so if you wish to share it using proxypass you will need to set it up like so:

ProxyPass / http://192.168.1.2:8080/
ProxyPassReverse / http://192.168.1.2:8080/

and access http://sab.mydomain.com/sabnzbd/

I'll look into if it is just the login code that causes problems in this area and if anything can be done to fix it.
B3rt
Newbie
Newbie
Posts: 5
Joined: September 27th, 2008, 8:18 pm

Re: Login error when usy proxy

Post by B3rt »

That would be great, I hope there is a way to change this.
Post Reply