11-09-2007
Squid Proxy URL rewriting
I have an architecture as below
[UNIX server] <> [Firewall] <> [Proxy server running squid]
There is a program in the AIX server which sends SMS to the internet, by sending HTTP request to the SMS processing server.
Like,
http://smsserver/mysms=test
However the application does not have an option to specify where the Proxy server server is located.
Now my requirement is
I want to route the HTTP request, say
http://smsserver/mysms=test, to the internet through the proxy.
Is there somoething like:
proxy://myproxyaddress:8080/http://smsserver/mysms=test
something like that.
I saw something called URL rewriting in the net, but i didnt understand fully. I'm a complete newbie.
Any help would be much appreciated.
Firdous
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi. pardon my noob question id just like to have a quick answer. i am planning to install a jabber webclient and a jabber server in our apache server. my boss said this wouldnt work because squid filters port 5222 connections (jabber). i told him we can simply 'unfilter' the port then but he said... (0 Replies)
Discussion started by: marcpascual
0 Replies
2. IP Networking
hi guys!
We are setting up Squid Server. we want the server to be transparent. But I don't know how will i be able to set the network up. is it possible to set the squid server in the same LAN with the Squid Client and still functions as a transparent server? if so, can anybody help me do it?
... (1 Reply)
Discussion started by: init6_
1 Replies
3. UNIX for Advanced & Expert Users
Hi all,
The scenario is:
http://img834.imageshack.us/img834/7990/1234z.jpg
- With:
+ 192.168.100.0/24 : internet link (simulation)
+ Multiple Websites are hosting in local.
+ Complete DNS configuration.
+ OS: CentOS 5
- Requirements:
Configure Squid Proxy as... (0 Replies)
Discussion started by: kidzer0
0 Replies
4. IP Networking
Can any one direct me to the resources where I can find in-depth instructions on Squid Proxy server and its configuration?
Thanks in advance.:) (1 Reply)
Discussion started by: admin_xor
1 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I'd like to point all of my domain traffic to a squid server that will figure for me the url redirection that needed to do:
all urls starting with:
mobile.*.mydomain.com
will go to server1 (tomcat server)
all others will go to server2 (apache server)
the catch is that the URL... (0 Replies)
Discussion started by: eliraza6
0 Replies
6. IP Networking
All traffic on the LAN is routed through a single machine and filtered using iptables. I'd like to redirect this traffic to a transparent proxy running on the same machine that will rewrite the URL if it matches a specified regex, in which case the user will be redirected to a local server. In... (0 Replies)
Discussion started by: crottyan
0 Replies
7. IP Networking
I am using Squid to create a proxy server for framework related to an application. My users sit on a private network in 191.xx.xx.xx space and my proxy sits in a different private network in 188.xx.xx.xx space. There will be a NAT in place to allow bidirectional communications but is there an... (5 Replies)
Discussion started by: BobSpero
5 Replies
8. Linux
Hi All Im using squid Proxy in centos
Squid version = squid.x86_64 7:3.1.10-20.el6_5
CentOS release 6.5 (Final)
Router IP = 192.168.1.1
My proxy System have 2 Ethernet port
eth0
eth1
Using IP address for eth0 = 192.168.1.15/24
using IP address for eth1 = 192.168.1.16/24
Default... (1 Reply)
Discussion started by: babinlonston
1 Replies
9. Shell Programming and Scripting
i need squid proxy log file daily auto generate by shell script (1 Reply)
Discussion started by: sanjeetkumar086
1 Replies
10. Linux
Hello,
Did anyone setup a CentOS7 as a gateway (with squid transparent proxy).
I am trying to do so but not able to setup.
I setup squid , iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work.
It work previously but access.log of squid not getting... (4 Replies)
Discussion started by: sunnysthakur
4 Replies
LEARN ABOUT DEBIAN
ns_relativeurl
Ns_Url(3aolserver) AOLserver Library Procedures Ns_Url(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
Ns_AbsoluteUrl, Ns_ParseUrl, Ns_RelativeUrl, Ns_SkipUrl - URL manipulation routines
SYNOPSIS
#include "ns.h"
int
Ns_AbsoluteUrl(Ns_DString *pds, char *url, char *baseurl)
int
Ns_ParseUrl(char *url, char **pprotocol, char **phost,
char **pport, char **ppath, char **ptail)
char *
Ns_RelativeUrl(char *url, char *location)
char *
Ns_SkipUrl(Ns_Request *request, int n)
_________________________________________________________________
DESCRIPTION
Ns_AbsoluteUrl(pds, url, baseurl)
Construct an URL based on baseurl but with as many parts of the incomplete url as possible. Return NS_OK or NS_ERROR.
Ns_ParseUrl(url, pprotocol, phost, pport, ppath, ptail)
Parse a URL into its component parts. Pointers to the protocol, host, port, path, and "tail" (last path element) will be set by ref-
erence in the passed-in pointers. The passed-in url will be modified.
Ns_RelativeUrl(url, location)
If the url passed in is for this server, then the initial part of the URL is stripped off. e.g., on a server whose location is
http://www.foo.com, Ns_RelativeUrl of "http://www.foo.com/hello" will return "/hello". Returns a pointer to the beginning of the
relative url in the passed-in url, or NULL if error. Will set errno on error.
Ns_SkipUrl(request, n)
Return a pointer n elements into the request's url.
SEE ALSO
nsd(1), info(n)
KEYWORDS
AOLserver 4.0 Ns_Url(3aolserver)