Apache redirecting


 
Thread Tools Search this Thread
Top Forums Web Development Apache redirecting
# 1  
Old 04-02-2009
Apache redirecting

Dear All

I need to redirect requests coming in on a second domain, to a page within an existing web site.

So basicly

http:\\webtest should be redirected to http:\\ustnd5\ukt\newsroom\newsroom.jsp

I have the line

ProxyPassReverse /ukt/newsroom/newsroom.jsp http://webtest:10080/

but it does nothing. What am I missing ? Can I even use ProxyPassReverse in this way or is there another way of achiving this ?

All help much appreciated.
# 2  
Old 04-02-2009
redirect

Hi,
one possibility is
Code:
RewriteCond %{HTTP_HOST} ^webtest [NC]
RewriteRule ^(.*)$ http://ustnd5/$1 [R=301,QSA,L]

without warranty
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

2. Web Development

Need help on Apache configuration for redirecting URLS

I am extremely new to Apache httpd configuration. Can you please help here below is my requirement. If the URL match existing resource - return resource. If the URL doesn't match existing resource it should return index.html from the app root directory. Apps root directories are: 1.... (0 Replies)
Discussion started by: kar_333
0 Replies

3. Web Development

Apache module development on apache 2.2

Hi, I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies

4. Shell Programming and Scripting

redirecting help

I am trying to create the file and redirect the output in the same command line which is line 4 in the below program. #!/bin/bash read -p "Enter File Name:" value1 echo "Your File Name is $value1" sed 's/abcd/'$value1'/g' abcd_calls > $value1_calls This is the error it generates ... (3 Replies)
Discussion started by: learnbash
3 Replies

5. Web Development

Apache - redirecting authenticated users to other sites

Hi everyone. Im really new here, so please have patience with me if i act out of order in any way. I do have some unix experience, but i would not call it extensive. The problem i am about to describe probably have a easy solution, but i have been unable to find it while speaking to Mr.Google... (4 Replies)
Discussion started by: antiw2k3
4 Replies

6. Shell Programming and Scripting

redirecting a url on apache conf file

i need help on redirecting apache conf file i want redirect everything to www.example.com/home example if i type a url www.example.com/home/text1 i need that redirected to www.example.com/home (0 Replies)
Discussion started by: shehzad_m
0 Replies

7. Shell Programming and Scripting

Help with proxy redirecting

Folks; i have a question about redirecting proxy in Apache2.2. I have a link for wiki called http://myserver.mmm.com I have a configuration script which redirect this link to http://myserver.mmm.com/wiki/dashboard I want to be able to extract "wiki" out of this link so it can be redirected... (0 Replies)
Discussion started by: moe2266
0 Replies

8. UNIX for Advanced & Expert Users

MX redirecting

I in no means consider myself a expert in unix however my question is a little more complex. I am running a mac os 10 server and all web settings and email settings have been set up using the unix terminal. I am in the process or redirecting my mxrecords to a spam filtering company but i am... (11 Replies)
Discussion started by: nbredthauer
11 Replies

9. Programming

Redirecting

How to redirect the contents of a file to a command? The contents of the file are the arguments necessary for the command. thx in advance. bye svh (5 Replies)
Discussion started by: svh
5 Replies

10. UNIX for Dummies Questions & Answers

redirecting one terminal into an other??

Hi guys; I want to show what am I doing on a terminal into another. I did something close but its not working really good. Example: cat /dev/pts/12 >/dev/pts/13 where 12 is my terminal and 13 its the other terminal. This is usefull for me to share my small unix knowledge to other people... (4 Replies)
Discussion started by: piltrafa
4 Replies
Login or Register to Ask a Question