href URL document retrieval issue using Apache Tomcat

Discussion in 'Apache' started by geno440, Jun 22, 2010.

  1. #1
    We are trying to get our Apache Tomcat web server to open static documents from the web server's file structure. We do this by allowing the user to click on an href in a jsp which in turn tells the web server to open a file on a new web page.

    All is working pretty well except that the web server is inserting a :8080 in the URL for the document.

    for example:

    http://localhost:8080/files/myfile/sampleDocument.doc

    When the name renders, the :8080 stops the OS from finding the file. If we remove the :8080 after the error, the file is retrieved and displayed.

    We use an Apache alias entry to tell the web server where to find the file directory. We have Apache on port 80 and Tomcat on port 8080.

    Any help on this issue?
     
    geno440, Jun 22, 2010 IP