facebook

Setting up an "Apache-Like" Alias

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #253864 Reply

    Glenn Puckett
    Participant

    I prefer to structure my application in a way that makes simple things like bringing in images somewhat difficult. So I resolve that issue using the Apache Alias option. I put a line in the conf file something like:

    
    Alias /image d:/project/images
    

    And in the html I can then use

    
    <img src="/image/myimage.gif" />
    

    And the images all load regardless of the configuration of the parent URL.

    How do I configure the web container of JBoss/Tomcat to manage this?

    I’ve been doing some looking around but haven’t been able to find anything. Google is a fine thing, but it will overwhelm you sometimes!!!

    Glenn Puckett
    MetaMAP, Inc
    Lexington, Ky

    #253907

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    If you run apache and JBoss on the same machine, apache on port 80 and jboss on port 8080 (or Tomcat), wouldn’t your simple img src= reference be handled by Apache, in which case your alias would work?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Setting up an "Apache-Like" Alias

You must be logged in to post in the forum log in