Advertisement
ujiajah1

dota2updatepatch/regex/storeid/storeurl/url_rewrite

May 30th, 2016
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.75 KB | None | 0 0
  1. #dota2
  2.  
  3. acl dota2 url_regex -i .*\.*steampowered\.com\/(.*)
  4. acl dota2 -i ^https?\:\/\/.*steampowered.*\/(client|depot)\/(.*)\?.*
  5. acl dota2 -i ^https?\:\/\/.*steampowered.*\/(client|depot)\/(.*)
  6. refresh_pattern -i ^http:\/\/((.*dota2\.com*).*$) 43830 99% 259200 override-expire override-lastmod ignore-reload
  7. refresh_pattern -i .*\.*steampowered\.com\/.* 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  8. refresh_pattern -i ^http:\/\/.*steampowered\.com.* 1 50% 4320 reload-into-ims refresh-ims
  9.  
  10. store_id_access allow dota2
  11.  
  12. store-id.pl =
  13. } elsif ($u =~ m/^https?:\/\/.*steampowered\.com\/.*\/([0-9]+\/(.*))/) {
  14.         $out="OK store-id=http://steampowered.squid.internal/" . $1 . "/" . $2;
  15.  
  16. } elsif ($u =~ m/^https?\:\/\/.*steampowered.*\/(client|depot)\/(.*)/) {
  17.         $out="OK store-id=http://steampowered.squid.internal/" . $1 . "/" . $2;
  18.  
  19. } elsif ($u =~ m/^https?\:\/\/.*steampowered.*\/(client|depot)\/(.*)\?.*/) {
  20.          $out="OK store-id=http://steampowered.squid.internal/" . $1 . "/" . $2 ;
  21.  
  22. =======================================================================================================================================
  23. =========================================from squid 2.7/lusca head@thanks to syaifudin JW===============================================
  24. =======================================================================================================================================
  25. } elsif ($_ =~ m/^http\:\/\/valve[0-9]*\.cs\.steampowered\.com\/(.*)/) {
  26.         print $x . "storeurl://steampowered.squid.internal/" . $1 . "\n";
  27.  
  28. } elsif ($_ =~ m/^http\:\/\/[a-z0-9]*\.hsar\.steampowered\.com\.edgesuite\.net\/(.*)/) {
  29.         print $x . "store-id:http://steampowered.squid.internalL/" . $1 . "\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement