Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53869 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62844 invoked from network); 11 Jul 2011 11:46:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2011 11:46:41 -0000 Authentication-Results: pb1.pair.com header.from=kiall@managedit.ie; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kiall@managedit.ie; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain managedit.ie designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: kiall@managedit.ie X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:44737] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/72-47764-E92EA1E4 for ; Mon, 11 Jul 2011 07:46:40 -0400 Received: by ewy2 with SMTP id 2so1260085ewy.29 for ; Mon, 11 Jul 2011 04:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=managedit.ie; s=google; h=mime-version:from:date:message-id:subject:to:content-type; bh=93vyVlsOq+WnGxEMtB59h3W1YL/WAijzNuLGR7qrnLA=; b=bOgzZw3Tjhr5mSma6LilUv1Ql6i03V4TCBUv3wfxBksd4Ji03ERWKgn69Z6w4NR6ZF DJx7REYf6brVSJ20NwWIN4zRUldV0ZhcW4D4TriATPMJqUgFW/mgkAhAhXYgQ+23UrOb qzXtg0qS3puylqz3iBdSHFi6sN8jO/piI94Gk= Received: by 10.14.16.4 with SMTP id g4mr1386175eeg.240.1310384792270; Mon, 11 Jul 2011 04:46:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.95.206 with HTTP; Mon, 11 Jul 2011 04:46:12 -0700 (PDT) Date: Mon, 11 Jul 2011 12:46:12 +0100 Message-ID: To: php-dev Content-Type: multipart/alternative; boundary=0016e6594acc0ff91e04a7c9bc51 Subject: Built-in web server routing script and static assets From: kiall@managedit.ie (Kiall Mac Innes) --0016e6594acc0ff91e04a7c9bc51 Content-Type: text/plain; charset=ISO-8859-1 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 --0016e6594acc0ff91e04a7c9bc51--