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 +1 -1
- data/nginx-osx.gemspec +1 -1
- data/templates/nginx.vhost.conf.erb +8 -5
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/nginx-osx.gemspec
CHANGED
@@ -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;
|