Changes between Version 3 and Version 4 of TipAndDoc/network/httpd/URLRedirect


Ignore:
Timestamp:
Dec 20, 2010 2:38:33 AM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/httpd/URLRedirect

    v3 v4  
    11[[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> 
     13RedirectMatch ^/jump/inner/(.*)$ https://example.com/inner/service/$1 
     14}}} 
     15  * RedirectMatchをLocation内に記述すればよい 
    216 
    317 = Redirect and Rewrite URL =