04-30-04 08:33 PM
druide24 wrote:
> Hi,
>
> I have installed WAS 5.1 + IBMHttpServer 1.3.26 on the same machine ( Linu
x Red Hat 8.0 ). Then i have developped a J2EE Application with an EJB modul
e and a WEB module, with "/" as the root context.
>
> Everything is working fine except except this :
>
> I have a file system directory with PDF files ( let's say /home/j2eeProject/pdf ), an
d i want to access to any of these files with [url]http://myServer/pdf/myPdfFile.pdf[/u
rl] ( it seems quite simple but ... )
>
> My PDF files are likely to be updated regularly using FTP, and I don't want to red
eploy my Web component each time i make a change. That's why i didn't put that direc
tory in my WEB module. Besides, I would like my Web server to serve directly my PDF
fil
es without passing by the application server !
>
> So, i created a "/pdf" Alias on the Web server that points to my directory
.
>
> Unfortunately, and because my web module context root is "/", every URL pa
ssed to the web server and beginning with "http://myServer/" is redirected t
o the Application server, and my "/pdf/" Alias has no effect at all ! ( erro
r 404 )
>
> Does anyone have an idea how to config my Web Server / Application Server
or plugin-cfg.xml file in order to redirect all HTTP requests beginning with
"http://myServer/" to the application server except the ones beginning with
"http://myServer/pdf" ?
>
> Thanks.
You can turn off file serving on the application server. That will
force the web server to serve static content and only JSPs and servlets
will be passed to the application server.
--
Aaron W Morris <aaronmorris@mindspring.com> (decep)
[ Post a follow-up to this message ]
|