Hello

I am trying to deploy my application under http://myserver.com/myapp

Currently;
     radio.py = http://mongo:8080
     myth_control.py = http://mongo:8080/myth

This works, but I need to prefix all my urls in myth_control.py with 
/myth/, /myth/SysOn, etc... I'd like to be able to use /, /SysOn, etc.. 
without having to prefix the urls with /myth, if I do not prefix the url 
with /myth/ I get a not found webpy error.

Here is my current lighttpd.conf (relevant parts only)

fastcgi.server = (
     "/radio.py" =>
      ((
          "socket" => "/tmp/fastcgi-radio.socket",
              "bin-path" => "/home/http/radio/radio.py",
              "bin-environment" => (
                        "REAL_SCRIPT_NAME" => ""
              ),
              "check-local" => "disable",
         "max-procs" => 1
     )),
     "/myth.py" =>
      ((
          "socket" => "/tmp/fastcgi-myth.socket",
              "bin-path" => "/home/http/myth_controll/myth_control.py",
              "bin-environment" => (
                        "REAL_SCRIPT_NAME" => ""
              ),
              "check-local" => "disable",
         "max-procs" => 1
     ))
)

url.rewrite-once = (
     "^/phpsysinfo/(.*)$" => "/phpsysinfo/$1",
     "^/static/(.*)$" => "/static/$1",
     "^/myth/(.*)$" => "/myth.py/$1",
     "^/(.*)$" => "/radio.py/$1"
)

Thanks,
pyther

--

You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.


Reply via email to