php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75583 .html file extension ignored by the built-in server
Submitted: 2017-11-28 00:14 UTC Modified: 2017-11-28 17:17 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: marco dot moura at fatec dot sp dot gov dot br Assigned:
Status: Verified Package: Built-in web server
PHP Version: 7.1.12 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marco dot moura at fatec dot sp dot gov dot br
New email:
PHP Version: OS:

 

 [2017-11-28 00:14 UTC] marco dot moura at fatec dot sp dot gov dot br
Description:
------------
When running php -S localhost:8000, or any chosen port number, html files can't be found by the built-in web server. For instance, after creating a folder, adding an index.html file, serving the folder, and accessing it through the web browser, the following error is returned: "The requested resource /index.html was not found on this server". This doesn't happen with .php files though. Tested using PHP version 7.1.12 x64, both Thread-Safe and Non Thread-Safe.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-28 17:17 UTC] cmb@php.net
-Summary: Html mime type ignored by the built-in server +Summary: .html file extension ignored by the built-in server -Status: Open +Status: Verified
 [2017-11-28 17:17 UTC] cmb@php.net
Indeed, while `.htm` is supported, `.html` is not, although the
documentation claims support for `.html`[1].

[1] <www.php.net/manual/en/features.commandline.webserver.php>
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC