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

質問編集履歴

5

2016/07/27 23:03

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -13,4 +13,5 @@
13
13
 
14
14
  この場合、http://proxy.test.com/内のリンクURLの記述で気をつけるべきことはございますでしょうか?
15
15
  例えば、src="/images/sample.jpg"とルート指定している場合、きちんとhttp://proxy.test.com/images/sample.jpgを読みに行ってくれるのでしょうか?
16
+ また、
16
- また、http://test.com/proxy/images/という記述した場合、http://proxy.test.com/images/を見に行ってくれるのでしょうか?
17
+ src="http://test.com/proxy/images/sample.jpg"という記述した場合、http://proxy.test.com/images/sample.jpgを見に行ってくれるのでしょうか?

4

2016/07/27 23:03

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -13,4 +13,4 @@
13
13
 
14
14
  この場合、http://proxy.test.com/内のリンクURLの記述で気をつけるべきことはございますでしょうか?
15
15
  例えば、src="/images/sample.jpg"とルート指定している場合、きちんとhttp://proxy.test.com/images/sample.jpgを読みに行ってくれるのでしょうか?
16
- また、http://test.com/proxy/images/という記述した場合、須く、http://proxy.test.com/images/を見に行ってくれるのでしょうか?
16
+ また、http://test.com/proxy/images/という記述した場合、http://proxy.test.com/images/を見に行ってくれるのでしょうか?

3

2016/07/27 14:31

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,12 +1,13 @@
1
1
  Apacheにて下記のようなリバースプロキシを設定したいと考えています。
2
-
2
+ ```
3
- '''DocumentRoot /var/www/html/test
3
+ DocumentRoot /var/www/html/test
4
4
  ServerName test.com
5
5
  ErrorLog "logs/test.com_error.log"
6
6
  CustomLog "logs/test.com_access.log" common
7
7
 
8
8
  ProxyPass /proxy http://proxy.test.com
9
- ProxyPassReverse /proxy http://proxy.test.com'''
9
+ ProxyPassReverse /proxy http://proxy.test.com
10
+ ```
10
11
 
11
12
  上記の設定では、http://test.com/proxyにアクセスした場合、http://proxy.test.com/の内容が表示される(URLはtest.com/proxyのまま)という認識でよろしいでしょうか?
12
13
 

2

2016/07/27 14:20

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
File without changes

1

2016/07/27 14:19

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -1,12 +1,12 @@
1
1
  Apacheにて下記のようなリバースプロキシを設定したいと考えています。
2
2
 
3
- ```DocumentRoot /var/www/html/test
3
+ '''DocumentRoot /var/www/html/test
4
4
  ServerName test.com
5
5
  ErrorLog "logs/test.com_error.log"
6
6
  CustomLog "logs/test.com_access.log" common
7
7
 
8
8
  ProxyPass /proxy http://proxy.test.com
9
- ProxyPassReverse /proxy http://proxy.test.com```
9
+ ProxyPassReverse /proxy http://proxy.test.com'''
10
10
 
11
11
  上記の設定では、http://test.com/proxyにアクセスした場合、http://proxy.test.com/の内容が表示される(URLはtest.com/proxyのまま)という認識でよろしいでしょうか?
12
12