Commit Graph

240 Commits

Author SHA1 Message Date
Roland Warmerdam 3ede2df8bc Use valid font mime types in the nginx config. 2012-06-14 23:05:47 +12:00
AD7six 33a4f98eb0 normalize whitespace
make it easier to keep this file and the .htaccess file it is based upon
in sync, by using the same indent
2012-06-14 08:51:18 +02:00
AD7six 2615c2c2b1 Merge branch 'leek-patch-1' into develop
Conflicts:
	nginx/mime.types
2012-06-14 08:51:01 +02:00
James Long 6b6fa6efeb add the x-web-app-manifest-json mimetype for webapp files 2012-05-31 16:48:16 -04:00
Chris Jones e9cdc5dcb3 Syncing with latest H5BP `.htaccess` 2012-05-06 20:00:16 -03:00
AD7six b006de5485 Merge branch 'master' into develop
Conflicts:
	node/docs/docco.css
	node/docs/index.html
2012-03-28 10:26:14 +02:00
Indrek Ardel 55692f2b23 Fix configuration syntax. http://wiki.nginx.org/ConfigurationSyntax 2012-03-25 21:20:29 +03:00
Mathias Bynens 41b3dc1b33 Serve .mp4 and .m4v files as `video/mp4` as per RFC 4337
Closes h5bp/html5-boilerplate#1024. See http://tools.ietf.org/html/rfc4337#section-2.
2012-03-21 08:49:21 +01:00
AD7six 1543d95056 whoops - 1Y is not valid
one year is 1y
2012-02-05 01:39:24 +01:00
AD7six 3b39e4e928 apparently this is the same header as apache serves 2012-02-05 01:30:01 +01:00
AD7six ddedf07f48 move all server configs into folders
easier to organise. We could also possibly then simply add a README
file toeach folder rather than use wiki pages - maybe.
2012-02-04 10:45:24 +01:00
AD7six 22adca171d make xml application/xml 2012-02-01 11:24:59 +01:00
AD7six 366eedd6c4 add json 2012-02-01 11:22:05 +01:00
AD7six 54d4437c2f add expire rules mimicking that of the apache config
These rules are closer to the expire logic defined for apache, and also
use a none-capturing regex which will be (unnoticably) faster.

Added a comment as to why there is no default expire header defined.
2012-01-30 18:19:22 +01:00
AD7six 703a75c229 do not set a default expire
Unless your entire site is static it's inappropriate to do so - dynamic
requests will be cached by the browser unless your application code
overrides the expires which nginx is setting by default.
2012-01-27 15:18:18 +01:00
John-Scott Atlakson 2c8442269f Added m4a/m4v mime types.
This was recently added upstream => http://trac.nginx.org/nginx/changeset/4252/nginx
2011-12-21 17:42:56 -05:00
ram 5e161c6ddf Specify a charset. 2011-11-22 18:15:33 +05:30
Mathias Bynens 6b9f238e2f Use the correct MIME type for XHTML files. 2011-11-07 08:26:15 +01:00
James McKinney 9aed41388d add mime types from default mime.types 2011-11-06 21:26:37 -05:00
Mike Almond 838caf43a6 Updating configs to match H5BP .htaccess defaults 2011-10-26 09:50:44 -04:00
Tinnet Coronam 788c6cc813 add mime type for .wav files
'x-wav' seems to be the standard, but could also be 'wav' or 'wave' or 'vnd.wav' according to wikipedia
2011-08-31 16:56:06 +03:00
Iurii Ogiienko 74591fd85e We also need application/x-javascript for google chrome 2011-08-05 16:52:04 +03:00
Paul Irish 8555508338 merge. i thinkkk. 2011-07-20 10:43:24 -07:00
sean 6ca197bb2f nginx.conf Improvements/Corrections
Don't think it makes sense to turn this off for a single worker and it's on by default.

The docs indicate that Nginx will use the best method based on the available methods

Keepalive of 5 seems very low - i've seen recommendations of 10-20

gzip_proxied was set twice

gzip_static should be off unless actually used

default is deprecated

server_name _; shouldn't be used

Shoudn't use expires in the server {} block - should be inside location {}

Extra root lines not needed

gzip_comp_level seems too low

gzip_min_length seems too high
2011-07-20 10:40:39 -07:00
Mark Wolfe 8e4c2d5125 Added some comments to the nginx config relating to expires. 2011-07-20 10:40:37 -07:00
Mark Wolfe 4360828e44 Added some comments to the nginx config relating to expires. 2011-05-29 11:31:20 +10:00
Ben Hanzl c46faae757 specify 404 page 2011-04-13 16:23:10 -04:00
Paul Irish 87b81bd37c image/x-icon to match our htaccess. thx badboy. 2011-03-21 11:15:12 -07:00
Paul Irish 12e37aace6 Merge branch 'master' of https://github.com/predominant/html5-boilerplate-server-configs 2011-02-28 22:13:59 -08:00
Paul Irish 3b22391aa9 Merge branch 'master' of https://github.com/bits/html5-boilerplate-server-configs into bits-master 2011-02-28 22:13:28 -08:00
Graham Weldon 072e63e346 Remove access logging for static files to save disk writes. 2011-02-08 11:25:48 +08:00
Graham Weldon da285f1934 Remove access logging for static files to save disk writes. 2011-02-04 21:05:54 +11:00
Paul Sarena 5827b0c16a Add to and fix typo in MIME types to be gzipped:
Add text/x-component.  It's listed in html5-boilerplate/.htaccess and is in our nginx-mime.types
Fix application/xml+rss, should be application/rss+xml
Comment indicating text/html is always compressed, so there's no need to include it
2011-02-02 09:22:03 +08:00
Paul Sarena ff8904f94c Add to and fix typo in MIME types to be gzipped:
Add text/x-component.  It's listed in html5-boilerplate/.htaccess and is in our nginx-mime.types
Fix application/xml+rss, should be application/rss+xml
Comment indicating text/html is always compressed, so there's no need to include it
2011-02-01 15:21:18 -08:00
Paul Irish f4bc3a9dc6 associate mime.types file with nginx 2011-01-31 17:06:10 -08:00
Paul Irish ec01439e22 nginx: js wasnt being gzipped. thanks poswald! fixes h5bp/server-configs#5 2011-01-31 17:03:59 -08:00
Paul Irish 3b7414f89a Use the .appcache extension instead of .manifest, as per http://html5.org/r/5812 - thx mathias 2011-01-31 16:55:29 -08:00
Paul Irish 289233a8c0 X-UA-Compatible for nginx. thanks mucho joshgillies 2011-01-31 10:35:18 -08:00
Paul Irish c174308f42 adding minor note about who owns the mime.types file. 2010-12-15 08:21:25 -08:00
Paul Irish 7bf736cbd3 whats up, sweetass configurations? boom boom. 2010-12-14 21:12:17 -08:00