In this post, we will describe how to use regex for connecting to destination web site using squid.
- Open the squid configuration file:
Vi /etc/squid3/squid.conf
- Defining the destination url
########Object Definition###################
Acl google_api url_regex ^http://ajax.googleapis.com/ajax/*
- Authorize access:
######################Autorization######################
http_access allow google_api
- After saving the configuration we will proceed to reload squid process
/etc/ini.d/squid3 reload