Allow Url In Squid Using Regex - ITPortal - Latest Tech News
24
post-template-default,single,single-post,postid-24,single-format-standard,qode-news-1.0.2,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,qode-content-sidebar-responsive,qode-theme-ver-14.3,qode-theme-bridge,disabled_footer_top,wpb-js-composer js-comp-ver-5.4.7,vc_responsive

Allow Url In Squid Using Regex

In this post, we will describe how to use regex for connecting to destination web site using squid.

  1. Open the squid configuration file:

Vi /etc/squid3/squid.conf

  1. Defining the destination url

########Object Definition###################

 

Acl google_api url_regex ^http://ajax.googleapis.com/ajax/*

  1. Authorize access:

######################Autorization######################

 

http_access allow google_api

  1. After saving the configuration we will proceed to reload squid process

/etc/ini.d/squid3 reload

No Comments

Post A Comment