Is /home/admin/Pages/Domain your project root path?

As simple example, here's my lighttpd setup:

server.document-root = "/my/project/root/"

## SCGI Settings
$HTTP["url"] !~ "^/public/" { # If URL is NOT /public/
  # Root config
  scgi.server = ("/" =>
    ( "ServerIPAddress" => (
      "host" => "127.0.0.1",
      "port" => 6500,
      "min-procs" => 5,
      "max-procs" => 10,
      "check-local" => "disable")
    )
  )
}

- Didip -

On Mon, Jun 29, 2009 at 11:52 AM, Anil <[email protected]> wrote:

> Couple of you helped me out on IRC regarding this (actually pointed to
> better solutions... thanks) but I am curious why my deployment using
> lighttpd and scgi doesnt work.
>
> I have a dev environment where I do not have a web server, just using
> paster. The same code breaks when I use lighttpd and scgi. The CSS/images
> fail to load.
>
> In dev, I have URLs like http://url/css/base.css. In production, the same
> url is returning a 404. Instead, they are become
> http://url/css/css/base.css. I am simply doing:
> ${h.stylesheet_link('/css/base.css')}
>
>
>
> My lighttpd configuration:
>
> $HTTP["host"] =~ "^(www\.)?domain\.net$" {
>   server.name = "domain.net"
>   server.document-root = "/home/admin/Pages/Domain"
>   $HTTP["scheme"] == "http" {
>     url.redirect = ("^/(login)" => "https://domain.net/$1";,
>                     "^/(register)" => "https://domain.net/$1";)
>   }
>   scgi.server = ("/" =>
>     ((
>       "host" => "127.0.0.1",
>       "port" => 6500,
>       "min-procs" => 1,
>       "max-procs" => 2,
>       "check-local" => "disable"
>     ))
>   )
> }
>
> What is causing the /public directory to not work?
>
> Thanks
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to