05-29-2010
Copy and forward apache http request
Hello,
I am using apache 2.2 and I need to have certain http requests (those including example.com for instance) to be executed normally and forwarded to another server.
With mod_rewrite, I could easily forward but then the input request would not be executed on my server. Right?
Am I missing something? Any idea on how to forward/copy an http request?
Many thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everybody,
I have a *.vbs file which I want to run automatically. I want to know if there is anyway to implement the given example
for e.g "http://255.255.255.55/script.vbs"
what I mean is does anyone know how to make an http request from a unix script??
Thanks in advance!!!!!!!!!!! (1 Reply)
Discussion started by: arksal
1 Replies
2. Shell Programming and Scripting
Hi,
i need a guide how to write a script which i can do a http request. Let say the request look like below;
http://www.test.com?txid=1&type=service&server=linux
I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Maybe it's a stupid question, anyway here goes..
I have an Apache web server on Solaris box, let's say A, with a public ip
and a web application on a Linux box, uhmmm B, on a private lan with a private ip.
I want the people from outside to connect to the app, but its inside the lan,... (4 Replies)
Discussion started by: piltrafa
4 Replies
4. UNIX for Dummies Questions & Answers
Can anybody tell about http request processing in shell script..? (3 Replies)
Discussion started by: noufal
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
Im trying to make an http get request to a web service from a linux machine like below and i get ERROR 500
wget http://10.1.21.236:8585/pns.asmx/Sen...&msgBody=werty
25018
$ --19:06:32-- http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA
Connecting to 10.1.21.236:8585...... (1 Reply)
Discussion started by: elthox
1 Replies
6. Web Development
I've set up a forward proxy within a VirtualHost (see below) on Apache 2.2.11. I then browse using mydomain.com:80 as the proxy - I've also tried using the IP address of the VirtualHost xxx.xxx.xxx.xxx:80. It works fine, the only problem is that in both cases the server's main IP address is always... (2 Replies)
Discussion started by: krunksta
2 Replies
7. Programming
Hello
I am trying to communicate with a server that is ready to accept HTTP GET requests and send back data per the request. However, I have very little experience in socket programming and I don't really know how to debug this. Googling on the web hasn't yielded much, except people saying I... (2 Replies)
Discussion started by: flagman5
2 Replies
8. Shell Programming and Scripting
I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in).
... (2 Replies)
Discussion started by: jurgen
2 Replies
9. Shell Programming and Scripting
Hi,
I am trying to write a shell script to parse the post request data that it received to a xml file. Below is the post request data that script is receiving.
-----------------------------7dd2339190c8e
Content-Disposition: form-data; name="param1"
1... (2 Replies)
Discussion started by: jdp
2 Replies
LEARN ABOUT FREEBSD
forward
FORWARD(5) BSD File Formats Manual FORWARD(5)
NAME
forward -- mail forwarding instructions
DESCRIPTION
The .forward file contains a list of mail addresses or programs that the user's mail should be redirected to. If the file is not present,
then no mail forwarding will be done. Mail may also be forwarded as the standard input to a program by prefixing the line with the normal
shell pipe symbol (|). If arguments are to be passed to the command, then the entire line should be enclosed in quotes. For security rea-
sons, the .forward file must be owned by the user the mail is being sent to, or by root, and the user's shell must be listed in /etc/shells.
For example, if a .forward file contained the following lines:
nobody@FreeBSD.org
"|/usr/bin/vacation nobody"
Mail would be forwarded to <nobody@FreeBSD.org> and to the program /usr/bin/vacation with the single argument nobody.
If a local user address is prefixed with a backslash character, mail is delivered directly to the user's mail spool file, bypassing further
redirection.
For example, if user chris had a .forward file containing the following lines:
chris@otherhost
chris
One copy of mail would be forwarded to chris@otherhost and another copy would be retained as mail for local user chris.
FILES
$HOME/.forward The user's forwarding instructions.
SEE ALSO
aliases(5), mailaddr(7), sendmail(8)
BSD
July 2, 1996 BSD