Page 1 of 1

Login error when usy proxy

Posted: September 27th, 2008, 9:05 pm
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.

Re: Login error when usy proxy

Posted: September 28th, 2008, 12:41 pm
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.

Re: Login error when usy proxy

Posted: September 29th, 2008, 3:07 pm
by B3rt
That would be great, I hope there is a way to change this.