Find the answer to your Linux question:
Results 1 to 4 of 4
Hi everyone! I have a server with Apache2 and Websphere. I have a working page that has 2 frames (xxx.html and yyy.jsp) that is accessed by http://xxx.yyy.zzz/mar/chec/htm/frame.html , but now ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    16

    Another Apache-Alias problem :(


    Hi everyone! I have a server with Apache2 and Websphere. I have a working page that has 2 frames (xxx.html and yyy.jsp) that is accessed by http://xxx.yyy.zzz/mar/chec/htm/frame.html , but now I was asked to 'reduce' that long address into a simpler one, so I went to the httpd.conf and added something like this:

    #
    # Aliases: Add here as many aliases as you need (with no limit). The format is
    # Alias fakename realname
    #
    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL. So "/icons" isn't aliased in this
    # example, only "/icons/"..
    #

    Alias /sgche /home/mar/web/chec/htm


    so that when I go to http://xxx.yyy.zzz/sgche/frame.html, it could be redirected as the one mentioned above. The upper frame (.html) works, including all references to images, etc, the problem is that the lower frame (.jsp) throws a "Internal Server Error"...Is putting an Alias in the httpd.conf a wrong approach?

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    are you getting any apache errors or is the internal server error being generated by websphere? are there any errors in websphere, like can't access blah blah?

  3. #3
    Just Joined!
    Join Date
    Jan 2009
    Posts
    16
    Quote Originally Posted by jledhead View Post
    are you getting any apache errors or is the internal server error being generated by websphere? are there any errors in websphere, like can't access blah blah?
    Hi again, I checked both error_log and access_log from Apache's logs. The error_log doesn't show any important error, the access_log shows that it gets the 500 error:

    [22/Jan/2009:13:45:08 -0600] "GET /sgiche/Jsp/validateok.jsp HTTP/1.1" 500 634

    So I guess that the error is originated from a request to WebSphere, I checked the waslog and it shows this:

    Thu Jan 22 13:45:07 2009 - 00000000 00000000 - Error - ws_open_domain_client_socket: 1 attempts, last error 111
    Thu Jan 22 13:45:07 2009 - 00000000 00000000 - Error - mediate_service_to_clone: Error 8 from clone 0, uri /sgichecador2/Jsp/validaok.jsp
    Thu Jan 22 13:45:07 2009 - 00000000 00000000 - Error - router_service : Failed 8

    As a note, when typing the complete address (http://xxx.xxx.xxx.xxx/mar/chec/html/dframep.html) the jsp in that frame loads correctly (from Websphere configuration, the Web Application Web Path of this app is /mar, Document Root: /home/mar/web), it seems as if the Alias I put in the Apache httpd.config (Alias /sgichecador /home/mar/web/chec/) doesn't like to resolve the jsp...am I missing something?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    I haven't dealt with was in a bit but from the link that you said still works, that link is still coming from apache, otherwise you would have specified a port.

    can you post the whole virtual host section from apache for that site?

    I think maybe you need to edit the plugin-cfg.xml file in apache, was isn't listening for the same alias' that apache is.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •