11-17-05 11:20 PM
thomas.olausson@ficoh.com wrote:
>I have a web application, but I want to move the static stuff (lots of GIFs
and JPEGs)
>to a static server.
>
>My current setup is IHS (plugin-cfg.xml) --> WAS 5.1 (WAR containing /myapp
)
>plugin-cfg.xml contains entries to forward requests to WAS.
>Works fine.
>
>I move the static stuff to /opt/static/myapp and
>I add this to httpd.conf
>Alias /myapp /opt/static/myapp
><Directory /opt/static/myapp>
></Directory>
>
>When I restart IHS, all my static stuff works fine, but none of the dynamic
stuff from WAS won't, I get 404.
>
>Can I have a dynamic WAR and a static alias with the same URI?
>I have turned off fileserving in my WAR app.
>
>It seems that the IHS Alias has precedence over everything in /myapp.
>Basically I want WAS to handle everything that's not found in static/myapp,
and IHS everything else.
>
>I've turned on tracing in plugin-cfg, but I get no log lines for /myapp, un
less
>I comment out the Alias in httpd.conf.
>
>The only way out is to change the links in /myapp to point to a new webroot
/myappstatic,
>but I want to avoid this.
>
>Any tips?
>/Thomas
>
>
I'm guessing that the context root of your web application is /myapp.
When you create that alias in IHS, you changed /myapp/... requests to
/opt/static/myapp/..., and WAS doesn't handle that URL.
Try creating an alias for /static/myapp instead of /myapp
Ken
[ Post a follow-up to this message ]
|