Visit Our UNIX and Linux User Community

Full Discussion: Apache redirecting
Top Forums Web Development Apache redirecting Post 302303181 by wjones on Thursday 2nd of April 2009 04:45:33 AM
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.
Test Your Knowledge in Computers #37
Difficulty: Easy
The hard disk space dedicated for swapping out processes on a memory-constrained Unix system is called the 'swap channel'.
True or False?

10 More Discussions You Might Find Interesting

1. 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

2. Programming


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

3. 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

4. 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 I have a configuration script which redirect this link to 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

5. Shell Programming and Scripting

redirecting a url on apache conf file

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

6. 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

7. 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

8. 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

9. 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

10. 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 -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies
jspc(1M)						    Application Server Utility							  jspc(1M)

jspc - precompiles JSP source files into servlets SYNOPSIS
jspc [options]jsp_filesor jspc [options]-webapp dir Use the jspc command to compile your JSP 1.2 compliant source files into servlets. To allow the application server to pick up the precom- piled JSPs from a JAR file, you must disable dynamic reloading of JSPs. To do this, set reload-interval property to -1 in the jsp-config element of the sun-web.xml file. For more information about the sun-web.xml file, see the Sun ONE Application Server Developer's Guide. jsp_files one or more JSP files to be compiled. -webapp dir a directory containing a web application. All JSPs in the directory and its subdirectories are compiled. You cannot specify a WAR, JAR, or ZIP file; you must first deploy it to an open directory structure using asadmin deploy. -q enables quiet mode (same as -v0). Only fatal error messages are displayed. -d dir the output directory for the compiled JSPs. Package directories are automatically generated based on the directo- ries containing the uncompiled JSPs. The default top-level directory is the directory from which jspc is invoked. -p name the name of the target package for all specified JSPs, overriding the default package generation performed by the -d option. -c name the target class name of the first JSP compiled. Subsequent JSPs are unaffected. -uribase dir the URI directory to which compilations are relative. Applies only to JSP files listed in the command, and not to JSP files specified with -webapp option. This is the location of each JSP file relative to the uriroot. If this cannot be determined, the default is /. -uriroot dir the root directory against which URI files are resolved. Applies only to JSP files listed in the command, and not to JSP files specified with -webapp option. If this option is not specified, all parent directories of the first JSP page are searched for a WEB-INF subdirectory. The closest directory to the JSP page that has one is used. If none of the JSP's parent directories have a WEB-INF subdirectory, the directory from which jspc is invoked is used. -genclass compiles the generated servlets into class files. -v [level] enables verbose mode. The level is optional; the default is 2. Possible level values are: o 0 - fatal error messages only o 1 - error messages only o 2 - error and warning messages only o 3 - error, warning, and informational messages o 4 - error, warning, informational, and debugging messages -mapped generates separate write calls for each HTML line and comments that describe the location of each line in the JSP file. By default, all adjacent write calls are combined and no location comments are generated. -die [code] causes the JVM to exit and generates an error return code if a fatal error occurs. If the code is absent or unparsable it defaults to 1. -webinc file creates partial servlet mappings for the -webapp option, which can be pasted into a web.xml file. -webxml file creates an entire web.xml file for the -webapp option. -ieplugin class_id specifies the Java plugin COM class ID for Internet Explorer. Used by the jsp:plugin tags. EXAMPLES
Example 1: Using jspc to compile the JSPs in a web application The following command compiles a set of JSP files into Java files under Hellodir: jspc -d Hellodir welcome.jsp shop.jsp checkout.jsp The following command compiles all the JSP files in the specified webapp into class files under Hellodir: jspc --d Hellodir --genclass --webapp /path_to_webapp_directory To use these precompiled JSP in the web application, put the generated files under Hellodir into a JAR file, place the JAR file under WEB- INF/lib and set reload-interval property to --1 in the jsp-config element of the WEB-INF/sun-web.xml file. asadmin(1M) Sun Java System Application Server March 2004 jspc(1M)

Featured Tech Videos

All times are GMT -4. The time now is 10:06 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy