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

Similar Messages

  • 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 Symon

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

  • IPlanet can't forward request to app server, why?

    My opinion is , iPlanet Web Server 6 + websphere 6 App Server.
    I generate the "plugin-cfg.xml" in WAS6 for connecting to iPlanet, but iPlanet can't forward requests to App Server at all, error log as below:
    "for host 172.17.18.80 trying to GET /DataExpert/jsp/login/Login.jsp, handle-processed reports: The request method is not applicable to this requested resource."
    I guess it must be the configuration problems of iPlanet, what do you think?

    magnus.conf
    #ServerRoot C:/iPlanet/Servers/https-csdopen
    ServerID https-csdopen
    ServerName csdopen
    ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    ErrorLog C:/iPlanet/Servers/https-csdopen/logs/errors
    MtaHost name-of-mail-server
    DNS off
    Security off
    ClientLanguage en
    AdminLanguage en
    DefaultLanguage en
    RqThrottle 128
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn=load-types mime-types=mime.types
    #Init fn="load-modules" shlib="C:/iPlanet/Servers/bin/https/bin/NSServletPlugin.dll" funcs="NSServletEarlyInit,NSServletLateInit,NSServletNameTrans,NSServletService" shlib_flags="(global|now)"
    #Init fn="NSServletEarlyInit" EarlyInit=yes
    #Init fn="NSServletLateInit" LateInit=yes
    Init fn="load-modules" funcs="as_init,as_handler,as_term" shlib="C:/Program Files/IBM/WebSphere/Plugins/bin/ns41_http.dll"
    Init fn="as_init" bootstrap.properties="C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/csdopenCell01/nodes/csdopenNode01/servers/webserver1/plugin-cfg.xml"
    obj.conf
    # Use only forward slashes in pathnames--backslashes can cause
    # problems. See the documentation for more information.
    <Object name=default>
    Service fn="as_handler"
    AddLog fn="as_term"
    NameTrans fn="pfx2dir" from="/servlet" dir="C:/iPlanet/Servers/docs/servlet" name="ServletByExt"
    NameTrans fn=pfx2dir from=/mc-icons dir="C:/iPlanet/Servers/ns-icons" name="es-internal"
    NameTrans fn="pfx2dir" from="/manual" dir="C:/iPlanet/Servers/manual/https" name="es-internal"
    NameTrans fn=document-root root="$docroot"
    PathCheck fn=nt-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html"
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
    AddLog fn=flex-log name="access"
    </Object>
    <Object name=cgi>
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi
    </Object>
    <Object name="servlet">
    ObjectType fn=force-type type=text/html
    Service fn="NSServletService"
    </Object>
    <Object name="jsp092">
    ObjectType fn="type-by-extension"
    ObjectType fn="change-type" type="magnus-internal/jsp092" if-type="magnus-internal/jsp"
    Service fn="NSServletService" type="magnus-internal/jsp092"
    </Object>
    <Object name="ServletByExt">
    ObjectType fn=force-type type=magnus-internal/servlet
    Service type="magnus-internal/servlet" fn="NSServletService"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    DataExpertClass.obj.conf
    # Sun Netscape Alliance - obj.conf
    # You can edit this file, but comments and formatting changes
    # might be lost when the admin server makes changes.
    # Use only forward slashes in pathnames--backslashes can cause
    # problems. See the documentation for more information.
    <Object name="default">
    Service fn="as_handler"
    AddLog fn="as_term"
    NameTrans fn="strip-params"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/iPlanet/Servers//ns-icons" name="es-internal"
    NameTrans fn="home-page" path="/docs/DataExpert/index.html"
    NameTrans fn="document-root" root="$docroot"
    PathCheck fn="nt-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.html,home.html"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="servlet">
    ObjectType fn="force-type" type="text/html"
    Service fn="NSServletService"
    </Object>
    <Object name="jsp092">
    ObjectType fn="type-by-extension"
    ObjectType fn="change-type" type="magnus-internal/jsp092" if-type="magnus-internal/jsp"
    Service fn="NSServletService" type="magnus-internal/jsp092"
    </Object>
    <Object name="ServletByExt">
    ObjectType fn="force-type" type="magnus-internal/servlet"
    Service type="magnus-internal/servlet" fn="NSServletService"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>

  • I can't forward emails from my hotmail account on my iPad.

    Hi there. I'm hoping someone can help me. I can't forward emails from my hotmail account on my iPad. When I try to click on more it won't open up. Any ideas?
    Thanks in advance

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank then power ON again in the normal way.] It is 'appsolutely' safe!

  • I can copy and paste from mozilla to word in second attempt only first attempt fails and paste a zero sized dot on the word document

    i can copy and paste from Mozilla to word in second attempt only first attempt fails and paste a zero sized dot on the word document.more ever i can not drag fevicon from address bar to my desktop.

    Maybe:<br />
    Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • Webdispatcher to forward requests from internet to intranet?

    We need to direct requests from internet to our content server which is in the intranet (so that the content server images can be seen from the internet).
    We have a WAS WebDispatcher in the DMZ. Can we use this WD to provide the connectivity?
    For example:
    Our content server intranet URL is:
    http://contenterv.com:1090/path/image.jpg
    Our WebDispatcher URL is:
    http://webdisp.com/app_name
    http://webdisp.com/app_name  should resolve to http://contenterv.com:1090/path/image.jpg
    We tried WD http forwarding but it just forwards the request, does not resolve the name transparently. So the forwarding works but since http://contenterv.com:1090/path/image.jpg is not known in the internet, it fails.
    Thanks

    >
    Ghochi Elin Kuswoyo wrote:
    > hi guys,
    >
    > you need to add parameter in your sapwebdisp.pfl (sap webdispatcher profile) :
    >
    > icm/HTTP/redirect_0 = PREFIX=/,TO=/path_image
    >
    > thanks
    No, this wont work, becuase you need reverse-proxy function rather than URL redirection, because internet user wont be access the intranet server even you give them the URL.
    I cannot get you the detailed confguration, but you can refer to web dispatcher cascade configuration.  play with the following parameters:
    wdisp/server_info_location
    wdisp/group_info_location
    wdisp/url_map_location
    >
    Cons wrote:
    > So in short, get your networking guys to do this, SAP cannot help in any way.
    it's not ture, web dispatcher can be used reverse proxy, of course you also can use other solution like Apache. However it's not recommened to use NAT, which might breach your network security.
    Cheers,
    Denny
    Edited by: Denny Liao on Jan 28, 2010 11:26 PM

  • Trouble forwarding request from a servlet to a JSP in OAS 4.0.8.1 on NT

    The OJSP release notes state that:
    "Servlets and JSP cannot coexist as the same application" and "Requests cannot be passed between two separate applications."
    Does this mean that my attempts to use the
    the servlet RequestDispatcher to forward a request to a JSP are futile? If so, is this a problem that will be fixed in the future? I would like to use this feature!
    This is the code (based on a sample from Sun's JSWDK 1.0.1) that doesn't work:
    servletToJsp.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class servletToJsp extends HttpServlet {
    public void doGet (HttpServletRequest request,
    HttpServletResponse response) {
    try {
    getServletConfig().getServletContext().getRequestDispatcher("/jsp/jsptoserv/hello.jsp").forward(request, response);
    } catch (Exception ex) {
    ex.printStackTrace ();
    I am able to use the <jsp:forward page="/servlets/servletToJsp" /> directive to go from a JSP page to a servlet (across two OAS Applications) and I also can forward a request via the dispatcher from one servlet to another in the same OAS application.
    Any help in this area would be appreciated. Thanks.

    I'm using OAS 4.0.8.1
    You mean servlet to JSP does not work and JSP to servlet works for you????Yes - but I've only tried very simply examples.
    That's different from my understanding. If you are using OAS 4081, both cases should not work.
    The problem you mentioned will be fixed in future release of OAS.That's good to know - thanks!
    null

  • Unable to forward requests from webserver

    I am trying to set-up iWS 6.0sp4 to forward requests to the application server but I always get not found as the webserver is just looking at its own document root. I have deployed the fortune ear (from 6.5) and can access that via the application servers own http server perfectly well. I have added the plugin package to the webserver and added the following into the magnus.conf
    Init fn="load-modules" shlib="<install_dir>/lib/webserver-plugin/solaris/iws/libpassthrough.so" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    and to the obj.conf
    NameTrans fn="assign-name" from="(fortune/fortune/*)" name="passthrough"
    NameTrans fn="assign-name" from="(fortune/*)" name="passthrough"
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://<application server http listener>"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The webserver starts up without any errors but never forwards any requests what might I be doing wrong?

    I followed the instructions found in the App Server 7 documentation and everything worked fine.
    The instructions I followed are in the document found at this link:
    http://docs.sun.com/source/816-7156-10/agplugin.html#17655
    Just FYI...
    I also checked with Sun about why this process is now necessary and I asked about what happened to the web connector from 6.x. Sun had this reply:
    The Web Server Plug-in is the new web connector. It just hasn't been wrapped with an installation yet ... which is why it is tedious. The old Plug-in for 6.5 would ultimately have the same type of obj.conf entries. I'm not sure if there will be an installation wrapper for it once the Enterprise Edition is released.
    The Web Server Plug-in is different right now in that it doesn't 'know' about multiple instances yet. These are capabilities that will be introduced in the Enterprise Edition in March. Of course, that doesn't stop you from having multiple instances of the web server talking to multiple instances of the app server. It just means that the web server instances have to be directed to the app server instances rather than discovering them.

  • Can I forward emails from Mail to my work email when I'm there?

    Is is possible to have incoming Mail messages forwarded to another email address when I am at work? It takes too long to log into the web and check my home email at work when I'm there. I have outlook at work and it's way better than Mail (IMO). Can this be done?

    A rule is simply an automated action that occurs based on a set of conditions. The ability to make rules exists in just about all email applications including Outlook and Mail.
    One of the things I like about Mail is that making rules is a lot easier than in Outlook. But, there's no way to make an email client forward email to specific location by just checking a box because application doesn't know which messages you want forwarded and to where to send it until you tell it.
    Anyway, enough background....here's how to make a Rule in Mail:
    -Open Mail and select Mail->Preferences from the menu bar.
    -Click on the Rules tab and click the Add Rule button.
    -Type a name for your rule, e.g. "Forward to Work"
    -For conditions, select To and Contains from the drop-down menus, then type your home email address in the blank at the end.
    -For actions, select Forward Message from the drop-down menu and type your work email address in the blank.
    -Click the OK button.
    That's it. Now all messages to your home address will be forwarded to you work address.

  • HT4519 I can't forward emails from my iPhone. It says rejected by server.

    I can't forward messages in my email from my Iphone.  It places them in the Outbox, message states" placed in Outbox, message rejected by server

    Your SMTP settings are incorrect
    see here
    http://www.apple.com/uk/support/iphone/mail/

  • Can't forward messages from my hotmail account

    Cant forward messages from my hotmail account

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank then power ON again in the normal way.] It is 'appsolutely' safe!

  • Can't forward PDFs, from one sender only, from BT ...

    Hi, I wonder if anyone can help me with this? 
    If I receive a PDF as an attachment to an email, into my BT yahoo webmail, from one particular sender only, and I forward it to someone else,  they don't receive the PDF attachment.
    This doesn't happen with PDFs from anyone else - I can forward them OK. It doesn't happen with the problem sender if they instead send to my hotmail account- then I can forward them ok.
    The sender doesn't have this problem with other people.
    It's like some weird problem between that sender and my BT yahoo email account.
    Can anyone shed any light? I have to receive PDFs from this sender every day, and forward them on to others! I'd like to avoid having to save them and re-attach, I just want to forward them in the usual way.
    Many thanks,
    Ellie.

    A poster recently had a problem downloading PDFs. It was all PDF that he received he was having the problem with. While the problem is not quite the same as yours the fix may work for you. He simply carried out a factory reset of the Homehub by pressing a pin into the red recess button for abt 20 secs. Waited till it all reset then tried and the PDFs downloaded.

  • Forwarding request from JSP/Servlet to EJB

    Is it possible to forward the HttpRequest,HttpResponse objects from a Servlet/JSP to an Entity/Session bean ?
    ie To forward the call using RequestDispatcher/forward to a Session bean which in turn calls the entiy bean for updating DB
    Ramesh

    I don't think that's possible and even if it is there's an easier way. Normally you just create an instance of the session bean in a servlet and pass it the information. The session bean then calls the entity bean which updates the database. You don't have to forward the request - just pass the data to the bean.

  • Can I forward calls from iphone without the phone present?

    I forgot my work phone at home and wanted to know if I can forward the calls without having the phone with me.

    Some carriers permit call forwarding using any computer when you login to your account, so contact your carrier.

  • Can I forward emails from one account to another automatically

    I have 3 gmail accounts on TBird. I want to have emails sent to one account automatically forwarded to another of the accounts. Is this possible?
    thanks

    It is best to do this at the email providers server.
    Here is how to do it for gmail.
    https://support.google.com/mail/answer/10957?hl=en

Maybe you are looking for