Built-in web server routing script and static assets

From: Date: Mon, 11 Jul 2011 11:46:12 +0000
Subject: Built-in web server routing script and static assets
Groups: php.internals 
Request: Send a blank email to internals+get-53869@lists.php.net to get a copy of this message
Hiya, I've been playing with the built-in server, and have some concerns over how static assets are handled. Currently, to run an application on the built-in server, we essentially need to list out all the static assets that should be served directly from disk. This is the opposite of what I believe the most common web server configurations use. I believe the built-in server should mimic typical configurations, rather than requiring applications to write code solely for PHP's web server. Have I just missed something? or if not, what do people think of how static files are handled currently? A typical Apache config extract (IMHO): # Turn on URL rewriting RewriteEngine On RewriteBase / # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT] Apologies is this has been brought up before, I've not seen any discussion of this topic so far. Thanks, Kiall

« previous php.internals (#53869) next »