Last Updated: February 25, 2016
·
3.404K
· 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.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside