Ask To Apps
  • Home
  • WordPress
  • Elasticsearch
  • PHP
  • Linux
  • Website Peformance

Tag : proxy

Redirect request on php script through squid proxy

16/08/2015 Article

We can redirect every request received in squid cartier jewelry replica to custom php script bracelet replica cartier and we can process those request before returning back to the client. This cartier love bracelet replica can be done using url_rewrite_program in squid config. Just add following line at the end of url squid.conf file.

url_rewrite_program /etc/process.php

And here is process.php

#!/usr/bin/php
<?php
while ($input = fgets(STDIN)) {
// Split the output (space delimited) from squid into an array.
$input = explode(" ", $input);
$input[0] = urlencode($input[0]);
$input = implode("{{--}}", $input);
echo "http://localhost/yourprocessing.php?url=$input"; //URL of my web server
}

In yourprocessing.php you will get url as $_GET[‘url’]

Categories: Other, PHP

Tags: proxy, squid

About Author:

Appa

Recent Posts

  • Install and configure logstash-forwarder
  • Redirect request on php script through squid proxy
  • Alerting for Elasticsearch : Log watcher in elasticsearch using ES Watcher
  • Detect face from image using python script with OpenCV
  • Change mysql root password on centos
  • Search part of word in elasticsearch using nGram – auto-complete search
  • Connect VPN on centos linux using command line
  • Custom river plugin in elasticsearch
  • Backup elasticsearch with snapshot and restore api
  • PHP code to exact keywords from text.

Tags

apache Apache Lucene cache Distributed Elastic Index Elasticsearch elasticsearch performance Git Clone Git Hub Git Hub Configuration Git Hub Installation grep Import Install MySQL JSON over HTTP Linux Linux Command Linux Commands Linux search local file lsyncd md5sum Multile Domain Multisite MySQL Open Source optimization performance php performance real time search remote file Remote Git Hub remote sync RESTful Scale Schema Free Search Engine Search Index Search keyword static cache Sub Domain sync Very fast Wordpress Wordpress multisite

Copyright Ask To Apps 2022 | Proudly powered by WordPress

facebook twitter google linkedin Email Rss