Guest User

Untitled

a guest
Feb 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. # -*- apache -*-
  2. # Leopard (10.5) Apache 2 configuration for Validator S.A.C. installed in /Applications
  3.  
  4. # First, tell httpd that check_wrapper.sh and sendfeedback_wrapper.sh are CGI scripts.
  5.  
  6. ScriptAlias /w3c-validator/check '/Applications/Validator-SAC.app/Contents/Resources/validator/httpd/cgi-bin/check_wrapper.sh'
  7. ScriptAliasMatch /w3c-validator/feedback(\.html)? '/Applications/Validator-SAC.app/Contents/Resources/validator/httpd/cgi-bin/sendfeedback_wrapper.sh'
  8.  
  9. <Directory "/Applications/Validator-SAC.app/Contents/Resources/validator/httpd/cgi-bin">
  10. AllowOverride None
  11. Options None
  12. Order allow,deny
  13. Allow from all
  14. </Directory>
  15.  
  16. # This is the directory where you have the validator's *.html, *.css etc files.
  17.  
  18. Alias /w3c-validator/ '/Applications/Validator-SAC.app/Contents/Resources/validator/htdocs/'
  19.  
  20. <Directory '/Applications/Validator-SAC.app/Contents/Resources/validator/htdocs/'>
  21. Options IncludesNOEXEC Indexes MultiViews
  22. AllowOverride None
  23. Order allow,deny
  24. Allow from all
  25. AddHandler server-parsed .html
  26. AddCharset utf-8 .html
  27. </Directory>
  28.  
  29. <IfModule mod_headers.c>
  30. <Directory '/Applications/Validator-SAC.app/Contents/Resources/validator/htdocs/images'>
  31. Header set Cache-Control "max-age=604800"
  32. </Directory>
  33. </IfModule>
  34.  
  35. # Advertise the service on Bonjour/Rendevous
  36. RegisterResource "W3C Validator S.A.C." /w3c-validator/
Add Comment
Please, Sign In to add comment