Avatar billede fredand Forsker
31. august 2009 - 20:48 Der er 5 kommentarer og
1 løsning

Apache + JBoss problems getting images

Hello!

We got an webapp on a Intranet running in Apache and JBoss.
The webapp is secured with a security app called AccessManager through web.xml.

The webapp is accessed like https://server1.the.company.com/thewebapp.
If it is accessed like above everything works fine.

But if a lazy user access it like https://server1/thewebapp, the problem is that requests for each images (when loading a page) from the webapp they need an extra login from the browser, like with Basic-auth.

Pretty annoying if a page conatins ten images, then ten login-forms is showed after each other!

So if any one got any ideas how to solve this please let me know!

Best regards amigos!
/Fredrik
Avatar billede arne_v Ekspert
31. august 2009 - 21:13 #1
Have you tried if you can simply redirect requests to server1 to server1.the.company.com ?
Avatar billede fredand Forsker
31. august 2009 - 22:08 #2
Hello Arne!

Sounds very interesting, but how do you mange that?
Is it possible to set it up in apache or Jboss in some how?

Best regards
Fredrik
Avatar billede arne_v Ekspert
01. september 2009 - 03:19 #3
Something like:

<VirtualHost *:80>
    ServerAlias server1
    Redirect / http://server1.the.company.com/
</VirtualHost>

for HTTP and:

<VirtualHost *:443>
    ServerAlias server1
    Redirect / https://server1.the.company.com/
</VirtualHost>

for HTTPS.

All in Apache httpd.conf - worth a try.
Avatar billede arne_v Ekspert
13. september 2009 - 02:15 #4
Tried ?
Avatar billede fredand Forsker
13. september 2009 - 15:30 #5
Hello Arne!

Your solution seems to work, but the security guys that administrates the AccessManager found out that there is a switch for gif:s and jpg:s. When turning this on the AccessManager gets the login in info for the requests.

I really think you should give a svar since your idea was really good even if the security guys found out an other way.

Best regards amigo!

/Fredrik
Avatar billede arne_v Ekspert
13. september 2009 - 16:08 #6
ok
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Uanset kodesprog, så giver vi dig mulighederne for at udvikle det, du behøver.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



IT-JOB