Hi,

Here is the config of our dev - this also allows (.)'s - hope it helps


$HTTP["host"] == "devsite.ere" {
  server.document-root = "/var/www/vhosts/devsite.ere"

  alias.url = (
    "/sf" => "/usr/share/php5/symfony/data/web/sf"
  )

  fastcgi.server = ( 
    ".php" => ((
      "bin-path" => "/usr/bin/php-cgi",
      "socket" => "/tmp/php.socket",
      "max-procs" => 2,
      "idle-timeout" => 20,
      "bin-environment" => (
        "PHP_FCGI_CHILDREN" => "4",
        "PHP_FCGI_MAX_REQUESTS" => "10000"
      ),
      "bin-copy-environment" => (
        "PATH", "SHELL", "USER"
      ),

      "broken-scriptfilename" => "enable"
    ))
  )

  url.rewrite-once = (
    "^/css/.+" => "$0",
    "^/js/.+" => "$0",
    "^/images/.+" => "$0",
    "^/uploads/.+" => "$0",
    "^/flv/.+" => "$0",
    "^/swf/.+" => "$0",
    "^/favicon\.ico$" => "$0",
    "^/sf[A-z]+Plugin.*" => "$0",
    "^/sf/.+" => "$0",
    "^/([a-z_])\.php(/[^\?]+)?(\?.*)?" => "/$1.php$2$3", # any app (any
env)
  )

  auth.backend.htpasswd.userfile = "/etc/lighttpd/.htpasswd"
  auth.backend = "htpasswd"
  auth.debug = 2

  auth.require = (
    "/" => (
      "method"  => "basic",
      "realm"   => "Restricted Area",
      "require" => "valid-user"
    )
  )
}



Tim


On Tue, 2009-05-26 at 14:17 -0700, ezequielc wrote:

> Hi,
> 
> I am having a problem with dots in urls.
> When I type a search and my value contains . (dot), I get a 404 error.
> 
> Sumedh, from this group, solved the problem for apache, using a
> rewrite condition:
> 
>   RewriteCond %{REQUEST_URI} !\..*/.*$
> 
> But I couldn't replicate in lighttpd.
> Does someone knows how to set this rule in lighttpd?
> 
> Thanks.
> 
> Ezequiel
> 
> > 

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

Reply via email to