0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

W3C UnicornからのアクセスはOKにする

Posted at

以下の設定で、W3C Unicornからの検証は可能だが、ブラウザで表示する際はベーシック認証が必要になる

<Location /HOGE>
  Satisfy Any
  AuthType Basic
  AuthName "Basic Auth"
  AuthUserFile /etc/httpd/conf.d/htpasswd
  Require valid-user

  SetEnvIf User-Agent "W3C_Unicorn" w3c-ok
  SetEnvIf User-Agent "W3C_CSS_Validator" w3c-ok
  SetEnvIf User-Agent "FeedValidator" w3c-ok
  SetEnvIf User-Agent "W3C_I18n-Checker" w3c-ok
  SetEnvIf User-Agent "W3C_Validator" w3c-ok
  Order Deny,Allow
  Deny from all
  Allow from env=w3c-ok
 </Location>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?