Changes between Version 3 and Version 4 of TipAndDoc/network/httpd/URLRedirect
- Timestamp:
- Dec 20, 2010 2:38:33 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TipAndDoc/network/httpd/URLRedirect
v3 v4 1 1 [[PageOutline]] 2 3 = Redirect with Location/Directory = 4 * RedirectディレクティブはLocationやDirectoryよりも先に評価されるようなので注意 5 * 次のような設定では、「/jump/inner/hoge」にアクセスすると、認証をせずにいきなりexample.comにリダイレクトされてしまう 6 {{{ 7 <Location /jump> 8 AuthType Basic 9 AuthName "Authentication for jump" 10 AuthUserFile /path/to/passwd/htpasswd.file 11 Require valid-user 12 </Location> 13 RedirectMatch ^/jump/inner/(.*)$ https://example.com/inner/service/$1 14 }}} 15 * RedirectMatchをLocation内に記述すればよい 2 16 3 17 = Redirect and Rewrite URL =