Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <filesmatch ".(css|eot|otf|ttc|ttf|woff|woff2)$">
  2. SetEnvIf Origin "^https?://[^/]*(domain).com$" ORIGIN=$0
  3. Header always set Access-Control-Allow-Origin %{ORIGIN}e env=ORIGIN
  4. Header always set Access-Control-Allow-Credentials "true"
  5. Header merge Vary Origin
  6. </filesmatch>
  7.  
  8. SetEnvIf Host dev.domain.com dev
  9. SetEnvIf Host staging.domain.com staging
  10. AuthType Basic
  11. AuthName "Password Required"
  12. AuthUserFile /full/path/to/.htpasswd
  13. Require valid-user
  14. Order allow,deny
  15. Allow from all
  16. Deny from env=dev
  17. Deny from env=staging
  18. Satisfy any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement