teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コード修正

2020/01/02 04:40

投稿

majikadezou
majikadezou

スコア34

title CHANGED
File without changes
body CHANGED
@@ -16,13 +16,13 @@
16
16
  nginx の設定ファイル
17
17
 
18
18
  # log directory
19
- error_log /var/www/rails/sako_app/log/nginx.error.log;
19
+ error_log /var/www/rails/hoge_app/log/nginx.error.log;
20
- access_log /var/www/rails/sako_app/log/nginx.access.log;
20
+ access_log /var/www/rails/hoge_app/log/nginx.access.log;
21
21
  # max body size
22
22
  client_max_body_size 2G;
23
23
  upstream app_server {
24
24
  # for UNIX domain socket setups
25
- server unix:/var/www/rails/sako_app/tmp/sockets/.unicorn.sock fail_timeout=0;
25
+ server unix:/var/www/rails/hoge_app/tmp/sockets/.unicorn.sock fail_timeout=0;
26
26
  }
27
27
  server {
28
28
  listen 80;
@@ -30,7 +30,7 @@
30
30
  # nginx so increasing this is generally safe...
31
31
  keepalive_timeout 5;
32
32
  # path for static files
33
- root /var/www/rails/sako_app/public;
33
+ root /var/www/rails/hoge_app/public;
34
34
  # page cache loading
35
35
  try_files $uri/index.html $uri.html $uri @app;
36
36
  location = /favicon.ico {
@@ -46,7 +46,7 @@
46
46
  # Rails error pages
47
47
  error_page 500 502 503 504 /500.html;
48
48
  location = /500.html {
49
- root /var/www/rails/sako_app/public;
49
+ root /var/www/rails/hoge_app/public;
50
50
  }
51
51
  }
52
52
  ```