split static pages to IHS alias, with same URI
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > split static pages to IHS alias, with same URI




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    split static pages to IHS alias, with same URI  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-17-05 07:52 AM

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, unl
ess
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





[ Post a follow-up to this message ]



    Re: split static pages to IHS alias, with same URI  
Ken Hygh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:48 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register