質問編集履歴

1

設定ファイルのinclude元を追記

2016/05/09 07:49

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -76,6 +76,54 @@
76
76
 
77
77
 
78
78
 
79
+ ```
80
+
81
+ server {
82
+
83
+ listen 80;
84
+
85
+ server_name example.com;
86
+
87
+
88
+
89
+ rewrite ^(.+)/$ $1;
90
+
91
+
92
+
93
+ include /etc/nginx/conf.d/rewrite.conf; # 上記設定はここでinclude
94
+
95
+
96
+
97
+ location ~ ^/app(/(.+))?$ {
98
+
99
+ root /opt/app/public;
100
+
101
+ try_files $1 /app/index.php?$query_string;
102
+
103
+
104
+
105
+ location ~ ^/app/index.php$ {
106
+
107
+ include fastcgi_params;
108
+
109
+ fastcgi_param SCRIPT_FILENAME /opt/app/public/index.php;
110
+
111
+ fastcgi_split_path_info ^(.+\.php)(.+)$;
112
+
113
+ fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
114
+
115
+ fastcgi_index index.php;
116
+
117
+ fastcgi_read_timeout 180;
118
+
119
+ }
120
+
121
+ }
122
+
123
+ }
124
+
125
+ ```
126
+
79
127
 
80
128
 
81
129
  ###補足情報(言語/FW/ツール等のバージョンなど)