Skip to content

Commit daab35b

Browse files
committed
Remove mapping of .php files to text/html
`AddType test/html php` creates some problems¹ that can only be resolved by adding more PHP specific² configs, and that is beyond the scope of this project. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ¹ #62 ² https://php.net/manual/ro/install.unix.apache2.php http://blog.famillecollet.com/post/2013/01/13/PHP-and-Apache-SetHandler-vs-AddHandler Thanks @bridgeport! Fix #62
1 parent 27348d0 commit daab35b

File tree

6 files changed

+5
-24
lines changed

6 files changed

+5
-24
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### HEAD
2+
3+
* Remove mapping of `.php` files to `text/html`
4+
[[aeb81e9](https://github.com/h5bp/server-configs-apache/commit/aeb81e9174a9c69fa3a6f6c107d53dd4c8d58760)].
5+
16
### 2.12.0 (March 2, 2015)
27

38
* Add `ServerSignature Off`

dist/.htaccess

-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ Options -MultiViews
264264
AddType application/x-chrome-extension crx
265265
AddType application/x-opera-extension oex
266266
AddType application/x-xpinstall xpi
267-
AddType text/html php
268267
AddType text/vcard vcard vcf
269268
AddType text/vnd.rim.location.xloc xloc
270269
AddType text/vtt vtt

src/media_types/media_types.conf

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
AddType application/x-chrome-extension crx
109109
AddType application/x-opera-extension oex
110110
AddType application/x-xpinstall xpi
111-
AddType text/html php
112111
AddType text/vcard vcard vcf
113112
AddType text/vnd.rim.location.xloc xloc
114113
AddType text/vtt vtt

test/fixtures/.htaccess

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ Options -MultiViews
244244
AddType application/x-chrome-extension crx
245245
AddType application/x-opera-extension oex
246246
AddType application/x-xpinstall xpi
247-
AddType text/html php
248247
AddType text/vcard vcard vcf
249248
AddType text/vnd.rim.location.xloc xloc
250249
AddType text/vtt vtt

test/fixtures/test.php

-10
This file was deleted.

test/tests.js

-11
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,6 @@ exports = module.exports = {
308308
}
309309
},
310310

311-
'test.php': {
312-
responseHeaders: {
313-
'cache-control': 'max-age=0, no-transform',
314-
'content-security-policy': "script-src 'self'; object-src 'self'",
315-
'content-type': 'text/html; charset=utf-8',
316-
'x-frame-options': 'DENY',
317-
'x-ua-compatible': 'IE=edge',
318-
'x-xss-protection': '1; mode=block'
319-
}
320-
},
321-
322311
'test.oex': {
323312
responseHeaders: {
324313
'content-encoding': null,

0 commit comments

Comments
 (0)