質問編集履歴

2

修正

2016/09/23 11:13

投稿

bark_toro
bark_toro

スコア13

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  location /test/ {
10
10
 
11
- proxy_pass https://example.com/obj/;
11
+ proxy_pass https://******.com//****/****/;
12
12
 
13
13
  }
14
14
 
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- https://example.com/obj/sample.jpg
19
+ https://example.com/test/sample.jpg
20
20
 
21
21
  と叩くと画像が表示されますが、
22
22
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  ```php
38
38
 
39
- $url = 'https://example.com/obj/sample.jpg';
39
+ $url = 'https://example.com/test/sample.jpg';
40
40
 
41
41
  $file_name = '画像.jpg';
42
42
 

1

ミス修正

2016/09/23 11:13

投稿

bark_toro
bark_toro

スコア13

test CHANGED
File without changes
test CHANGED
@@ -7,8 +7,6 @@
7
7
  ```ここに言語を入力
8
8
 
9
9
  location /test/ {
10
-
11
- default_type application/octet-stream;
12
10
 
13
11
  proxy_pass https://example.com/obj/;
14
12
 
@@ -26,7 +24,7 @@
26
24
 
27
25
 
28
26
 
29
- PHPでいう下記のようなヘッに差し替えたいのですが、
27
+ PHPでいう下記のようなヘッに差し替えたいのですが、
30
28
 
31
29
  nginxの設定ファイルだけで対応できるものでしょうか。
32
30
 
@@ -38,7 +36,11 @@
38
36
 
39
37
  ```php
40
38
 
39
+ $url = 'https://example.com/obj/sample.jpg';
40
+
41
41
  $file_name = '画像.jpg';
42
+
43
+
42
44
 
43
45
  $header = get_headers($url, 1);
44
46