Commit b3992382 authored by Fabien Potencier's avatar Fabien Potencier

merged branch j0k3r/patch-1 (PR #370)

Commits
-------

ebd3bbca [docs] Add config example for lighttpd

Discussion
----------

[docs] Add config example for lighttpd

---------------------------------------------------------------------------

by fabpot at 2012-06-15T17:11:49Z

This is a very specific configuration (assets, ...). I don't see any value to add that to the Silex documentation.

---------------------------------------------------------------------------

by j0k3r at 2012-06-16T11:06:48Z

I can remove the assets & favicon part.
I know that few people were looking for the lighttpd configuration for Silex. I put this few lines in the readme file of one my little project so I thought it would be worth it in the official documentation.
parents 496aa805 ebd3bbca
......@@ -83,4 +83,19 @@ this sample ``web.config`` file:
</system.webServer>
</configuration>
Lighttpd
~~~~~
If you are using lighttpd, you can use this sample ``simple-vhost``:
.. code-block:: lighttpd
server.document-root = "/path/to/app"
url.rewrite-once = (
"^/assets/.+" => "$0", # directories with static files
"^/favicon\.ico$" => "$0",
"^(/[^\?]*)(\?.*)?" => "/index.php$1$2"
)
.. _FallbackResource directive: http://www.adayinthelifeof.nl/2012/01/21/apaches-fallbackresource-your-new-htaccess-command/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment