Last Updated: February 25, 2016
·
3.134K
· lennart

web.config for Symfony 2 on WebMatrix 2 (IISExpress)

For those trying to persuade WebMatrix' IISExpress to serve files from web/ and rewrite all requests (non-static) to app_dev.php

Save the content of this gist https://gist.github.com/3787187 into your WebMatrix project root as web.config

Alter the last rewrite rule to app.php instead of app_dev.php to serve a production server. This config is not bullet proof, but serves the purpose of having a local Symfony 2 development server integrated with WebMatrix 2.