aschuma

UBUNTU 14.04 / OSX :: Personal Ad Blocker

Aug 14th, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. # /etc/hosts
  2. http://hostsfile.mine.nu/get.asp?format=srv&zipped=yes
  3.  
  4. # OSX Hint - Loopback must be enabled, does not survive a system restart :-(
  5. ifconfig lo0 alias 127.0.0.3
  6.  
  7. # Apache 2.4
  8. <VirtualHost 127.0.0.3:80>
  9.  
  10. ServerAdmin [email protected]
  11. DocumentRoot "/_/var/www-127.0.0.3"
  12.  
  13. <Directory />
  14. Options FollowSymLinks
  15. AllowOverride None
  16. </Directory>
  17. <Directory /_/var/www-127.0.0.3/>
  18. Options Indexes FollowSymLinks MultiViews
  19. AllowOverride None
  20. Require all granted
  21. allow from all
  22. </Directory>
  23.  
  24. RewriteEngine On
  25. RewriteCond %{REQUEST_URI} ^/RealMedia/ads/
  26. RewriteRule ^/RealMedia/ads/(.*) /ads.gif [R]
  27. RewriteCond %{REQUEST_URI} ^/banners/
  28. RewriteRule ^/banners/(.*) /index.html [R]
  29.  
  30. ErrorLog "/private/var/log/apache2/127_0_0_3_error_log"
  31. CustomLog "/private/var/log/apache2/127_0_0_3_access_log" common
  32.  
  33. # Possible values include: debug, info, notice, warn, error, crit,
  34. # alert, emerg.
  35. LogLevel crit
  36.  
  37. ErrorDocument 404 /error_404.html
  38. </VirtualHost>
  39.  
  40.  
  41. # /var/www-127.0.0.3/error_404.html
  42. <html><body><div style="color: lightgray; font-size: 10px;">Werbung</div>
  43. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment