質問編集履歴
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,9 +34,9 @@
|
|
34
34
|
|
35
35
|
# log directory
|
36
36
|
|
37
|
-
error_log /var/www/rails/
|
37
|
+
error_log /var/www/rails/hoge_app/log/nginx.error.log;
|
38
38
|
|
39
|
-
access_log /var/www/rails/
|
39
|
+
access_log /var/www/rails/hoge_app/log/nginx.access.log;
|
40
40
|
|
41
41
|
# max body size
|
42
42
|
|
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
# for UNIX domain socket setups
|
48
48
|
|
49
|
-
server unix:/var/www/rails/
|
49
|
+
server unix:/var/www/rails/hoge_app/tmp/sockets/.unicorn.sock fail_timeout=0;
|
50
50
|
|
51
51
|
}
|
52
52
|
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
# path for static files
|
64
64
|
|
65
|
-
root /var/www/rails/
|
65
|
+
root /var/www/rails/hoge_app/public;
|
66
66
|
|
67
67
|
# page cache loading
|
68
68
|
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
location = /500.html {
|
96
96
|
|
97
|
-
root /var/www/rails/
|
97
|
+
root /var/www/rails/hoge_app/public;
|
98
98
|
|
99
99
|
}
|
100
100
|
|