diff --git a/templates/vhost.erb b/templates/vhost.erb
index 409194f..46a0d29 100644
--- a/templates/vhost.erb
+++ b/templates/vhost.erb
@@ -38,14 +38,12 @@
DocumentRoot <%= @docroot %>
/>
- Order allow,deny
- Allow from all
+ Options -Indexes +FollowSymLinks +MultiViews
+ AllowOverride All
-
- SetHandler "proxy:fcgi://127.0.0.1:9000"
-
+ ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000<%= @docroot %>/$1