[thelist] apache alias

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Wed Jun 8 22:24:53 CDT 2005


I have not used apache aliases. My solution is, you may use a global config file
like a config.class or set an application-wide constant and use it
throughout your code. And change the paths accordingly.

like:

<img src="[mycrappypathtotheimage]/goodImageIsntIt.tiff" alt="..." ... />

will be like

<img src="<%=Config.BaseImagePath%>/goodImageIsntIt.tiff" alt="..." ... />

It means search&replace of all the image paths in your project but a
bulk search and replace will do it quickly imho.


HTH,
Volkan.




On 6/8/05, Dan McCullough <dan.mccullough at gmail.com> wrote:
> I have several image directories that are stored within the bowels of
> my website.  The website is Java/JSP running on Tomcat, behind Apache.
>  The image directories and file structure (grrr) was created by my
> predecessor, so currently the bulk migrations of new code or new
> images includes a lengthy upload of files that are unnecessary so I
> want to pull out these behemoth image repositories and place them
> elsewhere, to achive this I wanted to use Apache alias, rather then
> having to find the HARDCODED (grrr) image pathes and manually change
> them.  So here is what I have.
> 
> Alias /imagerep/ "/usr/local/webimages/imagerep/"
> directory exists and has files underneath.
> 
> one note the /imagerep directory is not in the web root directory it
> is in a subdirectory.  so directory
> /usr/local/public_html/admin/imagerep
> 
> any thoughts?
> --
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>


More information about the thelist mailing list