Redirecting request to Apache
We have an application which is deployed on Weblogic 7.0 SP2, the application has
to be accessed through Apache server, so the request first goes to Apache and
then redirects it to WLS, but if somebody directly accesses the WLS server then
also he can access the application, I do not want any one to directly access
the WLS but all requests should be routed through Apache server. If someone accesses
the WLS directly then he should be redirected through Apache, is there some way
if this could be acheived by updating some configuration file.
In apache - tomcat integration, we do configurations at tomcat side also.
In server.xml of tomcat we add following lines for connector.
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" enableLookups="false" request.tomcatAuthentication="false" redirectPort="8443" protocol="AJP/1.3" />
Do we have any such file or do we have to do any such configurations on SAP WAS?
cheers
jayant
Similar Messages
-
Can't forward request from Apache to Tomcat on second instance
Hi,
I am trying to create 2 separate environments (dev and test) on one powerful
Unix server which has 2 network cards, 2 IP addresses, 2 server names...
Using Apache 2.0.43 and Tomcat 4.1.29/JBoss 3.0.7, mod_jk 2.0.43
on Solaris 9, Intranet environment.
Everything is fine on the first instance,
but on the second instance when I do http://server2,
Apache still can't redirect to second Tomcat/JBoss:
"Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 (Unix) mod_jk2/2.0.2 Server at mopppgctxat1.pfizer.com Port 80"
If I do http://server2:8080, getting it all right.
I made all internal ports on the second instance different from the first:
e.g. 8080->8180, 8009->8109, etc.
Even tried to change "Listen <ip2>:80" to 81, same error.
Curiously, jk2.properties is totally commented out.
I haven't compiled mod_jk, just copied the binary from the 1st instance.
Can that be a problem ?
Any help is very appreciated.
Thank you,
Oleg.By trying and trying I got it to work .... long hours
I removed the queue to queue option and the subscriber name from the subscriptions definition. And then I removed the destination-queue on the propagation schedule. Then it worked.
Mette -
Redirecting requests to a different tomcat
Hi,
I have two tomcat 5 installations running in my server. I have enabled the load-balancing feature of tomcat via apache.
The load-balancing and failover is working fine for me to redirect requests for all the webapps under a tomcat. Can this be done for a single webapp alone ?
What i mean to say is if I go to the tomcat1 manager UI and stop one of the webapps, then the requests for that webapp should alone be served from tomcat2 ...
Please get back if iam not clearno experience with tomcat 5 laodbalancing, but if it really is enabled it should work when only 1 of the 2 is active.
-
Exception while handling service request: org/apache/soap/Envelope
Hi all,
i´ve tried to run a message style webservice .
Now i always get following Error: Exception while handling service request: org/apache/soap/Envelope
Can anyone tell me what i should do?
I use Bea 6.1 and Apache Soap 2.2
I have deployed the Webservice and when i try to run the samples in apache all
works fine.
Thank you very much!!found the problem.
I use apache soap with tomcat 5.5.9
wrong: place the class file in a jar in the common/lib folder of tomcat
wright: place the class file in the directory webapps/soap/web-inf/classes
an other problem is when the method not exist -
How to configure bea apache plugin to forward request from apache to bea se
Hi,
I have an apache server and a bea weblogic application server. For security reasons, I wold like to configure a bea plugin on the apache server to redirect the client http/https requests from the apache2 server to bea application server.
I have gone through the bea documentation and configure my apache2 httpd.conf as follows
LoadModule weblogic_module modules/mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
MatchExpression *.jsp
</IfModule>
<Location /weblogic>
WebLogicHost myweblogic.server.com
WebLogicPort 7001
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
Then Restarted the apache2 and tryied to acces bea application through http://myweblogic.server.com/weblogic/
and http://myweblogic.server.com/something.jsp
It did not work
httpd is started propery.
Any help would be highly apreciated
Many Thanks
Ushas SymonI have no experience with nginx and varnish and asking configuration problems regarding these products is perhaps beyond the scope of this forum.
While configuring varnish, we are getting issues and unable to connect server from my browser if I change port 80.
You did not describe the issues, but it is possible and very common that your IP Firewall is blocking access to ports other than 80 and 22. For testing, you can simply turn it off. If you do not know how, please post your OS distribution version first, as it all depends. -
How to redirect request to a servlet on another server/context
Hi
I want to redirect a request came to a servlet to another servlet on another server or atlest different context on same server.
Thanks in advance,
--NageshThanks but, now after rediriceting the request I am
not getting any ServletInputStream. Getting rintime
error as NoClassDefinitionFoundError :
ServletInputStream.That's indicative of a problem with your classpath settings.
DO I have to do anything the JSP
(which submitted the request to first servlet) after
redirecting?Nops, you shouldnt do anything after sendredirect(). The response is committed after using this method.
ram. -
Request "org.apache.myfaces.trinidad.webapp.ResourceServlet"
I recive this request on my adf application
*defowMenu(event){ var adfRichMenu = event.getSource(); adfRichMenu.getPeer().show(); } function href(link){ location.href = link; } </script> <div id*
on "org.apache.myfaces.trinidad.webapp.ResourceServlet" servelet
request:
GET /IugStdPortal-StdPortalView-context-root/afr/partition/ie/defowMenu(event)%7B%20%20%20%20%20%20%20var%20adfRichMenu%20=%20event.getSource();%20%20%20%20%20%20%20adfRichMenu.getPeer().show();%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%20%20%20%20%20function%20href(link)%7B%20%20%20%20%20%20%20%20location.href%20=%20link;%20%20%20%20%20%20%7D%20%20%20%20%3C/script%3E%20%20%20%20%20%20%20%3Cdiv%20id= HTTP/1.1
I belive this is XSS injection
is there any thing I must do or waht?
can you help me?
BR,
AlaaHi,
the resource servlet handles the download of resources like JS files, image files etc that should not use the "expensive" faces lifecycle for download. The script seems to be an event handler that opens a menu item (for display)
Frank
Edited by: Frank Nimphius on Feb 8, 2012 5:17 PM -
Unable to redirect request Iplanet6 to Weblogic 5.1
Hi all!
I need help for this urgently....
I am configuring NES Plug-in to route the traffic from Sun ONE web server 6.1 on a Solaris 9 x86 box to WebLogic 8.1 SP2 on Windows x86 box.
But currently we don't have WebLogic 8.1 install in my solaris box , but i have Weblogic 5.1. So testing perpose currently i used Weblogic 5.1
I have copied "lib/solaris/libproxy.so" from WebLogic 5.1 SP2 installation on Windows system to Solaris 9 (x86) system which runs Sun Web Server 6.1 (iPlanet).
I have added the following line to magnus.conf file:
Init fn="load-modules" funcs="wl_proxy,wl_init" shlib=/usr/local/netscape/libproxy.so
Init fn="wl_init"
and the following <Object> tag to Obj.conf file:
Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl_proxy WebLogicHost=208.18.30.124 WebLogicPort=8010 PathPrepend=/P2K
Now when I run the Web Server it succesfully started but i am not able to get any afftect means request is not redirect to Weblogic.
And application is working fine in Iplanet 6.
How can I get this resolved...???
Please help!
Thankz in advance
SuprakashUhm, you should use the plugin from WebLogic 8.1 SP2 and follow the instructions in the WebLogic 8.1 documentation.
-
How do I redirect request to an external page flow?
Hi,
I´m really stucked here. I need to redirect and XML wich I get in page flow to an external page flow(in a different project(war) but in the same workshop application(ear)), I´ve tryied all kinds off things but it does not work correctly.
I even tryied what is written in workshop docs:
If the path begins with a protocol such as "http:" the page flow runtime will look outside of this web application for the resource, and it will automatically cause a redirect (rather than a server forward) to the resource. If the path begins with a forward slash, "/", the runtime will start at the web application's root directory to locate the resource. If the path omits the forward slash, "/", the reference is relative to the page flow's directory.
so I did:
@jpf:forward name="goToKnapp" path="http://localhost:7001/eaiKnapp/PageFlowName.jpf"
and inside the method:
return new Forward("goToKnapp");
and it does´t work.
Any help will be wellcome.Go to iPhoto and hit File and go to EXPORT. From there you can export your entire iPhoto Library to your external drive in any folder you want. Now if you've named the pictures in iPhoto and you select the check box for NAME and Keywords in the EXPORT menu the photos will be exported with the names given in iPhoto and any keywords you have added to the photo such as a description.. Hope this helps not sure if this is what your looking for.
-
AFCS.java doesn't handle the http redirect request
Hi AFCS team,
I just tried out the java script for external authentication. By default, when calling new AFCS.AccountManager(accountURL);, I'll get an error like the following:
"GET http://connectnow.acrobat.com/myaccount?mode=xml&accountonly=true& failed with status 302";
Actually this url will be redirected to "https://na2.connectnow.acrobat.com/myaccount?mode=xml&accountonly=true&" for me.
However, the script handles the http response only when status=200, or it consider the status as error.
So I added following code to http_get()/http_post(), everything goes well so far.
if (responseCode == 200) {
return connection.getInputStream();
// handle the redirect status
else if (responseCode == 302) {
return http_get(connection.getHeaderField("Location"), headers);
else {
throw new Error();
Is it something need to be fixed in next release?
Thanks!
JinniSo, the code was there a couple of releases ago, and then I took it out because I noticed that the lower level API were already processing redirections (but at this point I don't know on which case)
I'll do some more testing and if needed add the code back. Thanks for pointing it out! -
Redirect requests to access internet abnormal
Good morning
below a small question I want to propose you:
I manage a distributed within local network and users connecting to the Internet only through a proxy.
What should I do to be able to carry all abnormal requests (no proxy) on a server that will always be on the same LAN, but network different. Currently I am using OSPF as a routing protocol and do not have default-rout outward.
I would like to avoid a default-gateway
StefanoAre you testing from a system in the IP-range from 192.168.0.128-254? Then your Object-definition used for nat is wrong:
object network INSIDE_NET
subnet 192.168.0.0 255.255.255.128
should be:
object network INSIDE_NET
subnet 192.168.0.0 255.255.255.0
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni -
I have few EJB/JSP applications deployed on OC4J. I want to access applications
on Apache deployed on same/other machines . As this application is intended to be used by few administrators, I need to authenticate the user before access.
Is there any standard way to achieve this?
What I need to configure on OC4J/Apache.
Do I need to make any changes in the application to achieve this ?
Any thoughts
--pranayHi Pranay,
I can only suggest the following references (although I'm not sure
if they will help you).
http://www.elephantwalker.com
http://www.atlassian.com
http://www.orionserver.com
http://www.orionsupport.com
http://tahiti.oracle.com
Good Luck,
Avi. -
File request: org.apache.httpd.plist
Can some one post me their 10.5 copy of org.apache.httpd.plist as I've managed to remove this somehow.
Thanks.Welcome to Apple Discussions, Neil.
I found this on Apple Mailing Lists
http://lists.apple.com/archives/macos-x-server/2008/Jan/msg00373.html
and a possible solution:
Maybe it's empty?
+"Try going into your server admin "Certificates" section and removing and regenerating the certificate. Could also be permissions."+
And...
http://lists.apple.com/archives/macos-x-server/2008/Jan/msg00386.html
and a resolution, ta-ta!
http://lists.apple.com/archives/macos-x-server/2008/Jan/msg00387.html
+"The problem seems to have come from my renaming the default key provided with OSX Server. For some reason, when I rebooted this past time it broke apache, even though none of the sites had SSL enabled. Fixing the default .conf files so that they referred to the new key name (and those for the four sites on Apache) fixed the problem."+
Of course, who knows if yours is the same issue?
-mj -
Problem with sp11, wl 5.1, apache and server root requests
We have the following server configuration:
Solaris 2.6
Java 1.3.1_02
Weblogic 5.1
Apache 1.3.20
We recently moved from sp9 to sp11, and noticed a change in the behavior of the Apache-WL
bridge (mod_wl_ssl.so).
We have apache running in front of our WL instance. We're planning to offload static
content to apache, but for now, we pass all requests through to weblogic. This means
we don't have any files in Apache's server root. They all are in the (separate) weblogic
root. This has worked fine until sp11. Now, when you make a request to the server
root, ie, http://server.com/ or http://server.com, weblogic's 404 page is returned.
After turning on the debug logs of an sp9 and an sp11 bridge, I think this is what's
happening:
The way we have the bridge pass everything on is with a " MatchExpression * " directive
in the <IfModule mod_weblogic.c> section of our httpd.conf. We've also tested alternatives
using Directory, Location and LocationMatch directives like this:
<LocationMatch "^/">
SetHandler weblogic-handler
</LocationMatch>
and the behavior I'm writing about still remains.
In sp11, when making the root level request, the only request that apache passes
on to wl is a request for the error page set in the default apache config. (I'm looking
at the mod_wl debug logs).
In sp9, you see a request for "/", and wl returns a 302 redirection. The next request
is to "/index.jsp", which returns correctly (a 200 response).
What I think is happening is that mod_wl stopped intercepting the "/" URL request
in sp11. It would then default to apache's mod_dir to lookup an index file for /,
try to find that file in the apache root(internally to mod_dir), not find anything,
since we don't have an index file in the apache server root, then generate a request
for the apache error page, which is then intercepted and passed on to wl. Since wl
doesn't have this file, a 404 is returned. (whew).
Now, if I go to the apache server root, and create an empty index file (>touch index.jsp),
I see one request for "/index.jsp" passed to WL which then returns correctly. Still
no intial request for "/", which leads me to believe mod_dir is still handling the
"/" URL request rather than mod_wl.
Why did this behavior change between service packs, and can it switch back to the
original behavior? I don't like having empty files lying around. Also, I didn't see
this change in behavior documented in any of the release notes.
--peterI had a similar problem on Redhat Linux 7.1, Java 1.3.1, Apache 1.3.20
doing PathPrepends for a Location directive.
I recently saw they have release SP12 for WL5.1 which addresses
PathPrepend issues. This could be a similar issue
http://www.weblogic.com/docs51/classdocs/SERVICEPACK_README.html
"peter morelli" <[email protected]> wrote in message news:<[email protected]>...
We have the following server configuration:
Solaris 2.6
Java 1.3.1_02
Weblogic 5.1
Apache 1.3.20
We recently moved from sp9 to sp11, and noticed a change in the behavior of the Apache-WL
bridge (mod_wl_ssl.so).
We have apache running in front of our WL instance. We're planning to offload static
content to apache, but for now, we pass all requests through to weblogic. This means
we don't have any files in Apache's server root. They all are in the (separate) weblogic
root. This has worked fine until sp11. Now, when you make a request to the server
root, ie, http://server.com/ or http://server.com, weblogic's 404 page is returned.
After turning on the debug logs of an sp9 and an sp11 bridge, I think this is what's
happening:
The way we have the bridge pass everything on is with a " MatchExpression * " directive
in the <IfModule mod_weblogic.c> section of our httpd.conf. We've also tested alternatives
using Directory, Location and LocationMatch directives like this:
<LocationMatch "^/">
SetHandler weblogic-handler
</LocationMatch>
and the behavior I'm writing about still remains.
In sp11, when making the root level request, the only request that apache passes
on to wl is a request for the error page set in the default apache config. (I'm looking
at the mod_wl debug logs).
In sp9, you see a request for "/", and wl returns a 302 redirection. The next request
is to "/index.jsp", which returns correctly (a 200 response).
What I think is happening is that mod_wl stopped intercepting the "/" URL request
in sp11. It would then default to apache's mod_dir to lookup an index file for /,
try to find that file in the apache root(internally to mod_dir), not find anything,
since we don't have an index file in the apache server root, then generate a request
for the apache error page, which is then intercepted and passed on to wl. Since wl
doesn't have this file, a 404 is returned. (whew).
Now, if I go to the apache server root, and create an empty index file (>touch index.jsp),
I see one request for "/index.jsp" passed to WL which then returns correctly. Still
no intial request for "/", which leads me to believe mod_dir is still handling the
"/" URL request rather than mod_wl.
Why did this behavior change between service packs, and can it switch back to the
original behavior? I don't like having empty files lying around. Also, I didn't see
this change in behavior documented in any of the release notes.
--peter -
Apache configuration for proxying requests to Weblogic SSL port
Hello Everyone,
I want to proxy requests from Apache to Weblogic server on its SSL Port 7002. I am using the default SSL demo version provided by Oracle/BEA.
Both my Apache and Weblogic instances are running on same machine.
This is the procedure I followed. I enabled SSL port on Weblogic. Added below configuration to Apache conf file. I am passing trusted.crt file inside WL_HOME/server/lib as parameter to TrustedCAFile .
<Location "/">
SetHandler weblogic-handler
</Location>
<IfModule mod_weblogic.c>
SetHandler weblogic-handler
WebLogicHost ServerHostMame
WebLogicPort WLInstanceSSLPort
SecureProxy ON
TrustedCAFile "C:/trusted.crt"
RequireSSLHostMatch false
Debug ALL
WLLogFile "C:/wl_proxy.log"
</IfModule>
When I start the Apache instance and try to access the webpage I see below exception in proxy log.
Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[WL-Proxy-Client-IP]=[10.149.181.55]
Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[Proxy-Client-IP]=[10.149.181.55]
Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[X-Forwarded-For]=[10.149.181.55]
Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[X-WebLogic-KeepAliveSecs]=[30]
Thu Apr 09 10:38:05 2009 <735212392878852> Hdrs to WLS:[X-WebLogic-Force-JVMID]=[unset]
Thu Apr 09 10:38:05 2009 <735212392878761> INFO: No session match found
Thu Apr 09 10:38:05 2009 <735212392878852> INFO: SSL certificate chain validation failed: 3015
Thu Apr 09 10:38:05 2009 <735212392878852> trusted certs = 0
Thu Apr 09 10:38:05 2009 <735212392878852> dumping cert chain
Thu Apr 09 10:38:05 2009 <735212392878852> commonName is testmachine-us
Thu Apr 09 10:38:05 2009 <735212392878761> INFO: DeleteSessionCallback
Thu Apr 09 10:38:05 2009 <735212392878852> ERROR: SSLWrite failed
Thu Apr 09 10:38:05 2009 <735212392878852> SEND failed (ret=-1) at 789 of file ../nsapi/URL.cpp
Thu Apr 09 10:38:05 2009 <735212392878852> *******Exception type [WRITE_ERROR_TO_SERVER] raised at line 790 of ../nsapi/URL.cpp
Thu Apr 09 10:38:05 2009 <735212392878852> Marking 10.149.181.55:40011 as bad
Thu Apr 09 10:38:05 2009 <735212392878852> got exception in sendRequest phase: WRITE_ERROR_TO_SERVER [os error=0, line 790 of ../nsapi/URL.cpp]: at line 2994
Thu Apr 09 10:38:05 2009 <735212392878852> INFO: Closing SSL context
Thu Apr 09 10:38:05 2009 <735212392878852> INFO: Error after SSLClose, socket may already have been closed by peer
Thu Apr 09 10:38:05 2009 <735212392878852> Failing over after WRITE_ERROR_TO_SERVER exception in sendRequest()
Thu Apr 09 10:38:05 2009 <735212392878852> attempt #1 out of a max of 5
Thu Apr 09 10:38:05 2009 <735212392878852> general list: trying connect to '10.149.181.55'/40011/40011 at line 2619 for '/'
Thu Apr 09 10:38:05 2009 <735212392878852> New SSL URL: match = 0 oid = 22
Thu Apr 09 10:38:05 2009 <735212392878852> Connect returns -1, and error no set to 10035, msg 'Unknown error'
Thu Apr 09 10:38:05 2009 <735212392878852> EINPROGRESS in connect() - selecting
Thu Apr 09 10:38:05 2009 <735212392878852> Setting peerID for new SSL connection
Please advice if I am missing anything here?
- - TarunI'm using WL9 and Apache2.2
I had exact same issue as above (which I solved with these directions) in additiion to another issue, that only showed once I enabled full logging, since it shows as warning/info, not as error
First to enable full logging, add this
Debug ALL
WLLogFile "C:/wl_proxy.log"
Then after a failure (even after fixing the above), look at the log, and if you see this INFO/WARN:
Thu Apr 23 00:48:27 2009 <235612404369072> INFO: Host (comp1) doesn't match (192.168.0.229), validation failed
Thu Apr 23 00:48:27 2009 <235612404368911> WARN: DeleteSessionCallback: No match found!!
Thu Apr 23 00:48:27 2009 <235612404369072> ERROR: SSLWrite failed
Thu Apr 23 00:48:27 2009 <235612404369072> SEND failed (ret=-1) at 795 of file ../nsapi/URL.cpp
Thu Apr 23 00:48:27 2009 <235612404369072> *******Exception type [WRITE_ERROR_TO_SERVER] raised at line 796 of ../nsapi/URL.cpp
Thu Apr 23 00:48:27 2009 <235612404369072> Marking 192.168.0.229:7002 as bad
that means you have same problem as I do. The WeblogicHost inside the Location descriptor should match the actual host name for the machine. I believe it's easer because the certificate created by weblogic during its installation will encapsulate the machine host name, or because the SSL validation mechanism expects the machine host name, nothing else.
Here's how the config would like (my hostname is comp1)
<IfModule mod_weblogic.c>
SecureProxy on
TrustedCAFile "C:/tools/bea9/weblogic92/server/lib/CertGenCA.pem"
Debug ALL
WLLogFile "C:/wl_proxy.log"
EnforceBasicConstraints off
</IfModule>
<Location /EnterpriseCMP>
SetHandler weblogic-handler
WebLogicHost comp1
WebLogicPort 7002
ConnectTimeoutSecs 1000
ConnectRetrySecs 1000
</Location>
I believe the
Maybe you are looking for
-
How to sync an iphone to a newly installed OS 10.7.5?
I just did a clean install of OS 10.7.5 and know my iPhone fails to sync w/iTunes. How do I fix this? Sync session fails to start is the error message that get after trying varoius options. I'm missing something.......any ideas? thanks john
-
Classloader issue when deploying a war file
Hello, Using Jdev 11.1.1.3 with WebLogic 10.3.2.0 when we deploy a new version of our war file we get a ClassCastException for an entity class that cannot be cast on itself ! We are using standalone JPA for persistence. Caused by: javax.faces.el.Eval
-
I have exported a swf file from indesign CS5.5 ( contains audio, interaction, movie...) and I want to run it on my iPad, and off-course I can not install flash player on iPad. How can I solve this problem Without loosing interactivity? What is the ri
-
Hello, I'm asking me Why there's no T9 support in the dialer to get the desired contact faster. Many other mobile brands are already supporting this very useful function. Looking for a contact in the contact-list takes much longer and the favourites-
-
OmniOutliner: Is this a trial version and what is it for (what does it do)?
I just noticed that I've got this app called OmniOutliner. I fired it up and it looks like it's a fully registered version but I did not buy this. Also, what is this software for? It appears to be a text editor of some sort. And does anybody use it a