gvarela-nginx-osx 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/nginx-osx.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{nginx-osx}
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Gabe Varela"]
@@ -17,6 +17,14 @@ server {
17
17
  access_log <%= Dir.pwd %>/log/nginx.access.log main;
18
18
  error_log <%= Dir.pwd %>/log/nginx.error.log notice;
19
19
 
20
+ # hack to prevent image 404s from getting to rails
21
+ location /images {
22
+ if (-f $request_filename) {
23
+ break;
24
+ }
25
+
26
+ return 404;
27
+ }
20
28
 
21
29
  location / {
22
30
 
@@ -39,11 +47,6 @@ server {
39
47
  break;
40
48
  }
41
49
 
42
- # hack to prevent image 404s from getting to rails
43
- #if ($request_filename ~ '(/images|\.ico|\.gif|\.jpg|\.png)') {
44
- # return 404;
45
- #}
46
-
47
50
  # Rails page caching, if file path plus index.html exists break execution and serve up file
48
51
  if (-f $request_filename/index.html) {
49
52
  rewrite (.*) $1/index.html break;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gvarela-nginx-osx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabe Varela