Apache Server configuration support - .htaccess and java applet

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2006 > .htaccess and java applet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .htaccess and java applet
dawe

2006-08-31, 1:43 pm

Hi there, I've got here a website under apache 2.0.54 that has some
pages protected with basic authentication, provided by
..htaccess/.htpassword files. The problem I have is that a Java applet,
that is in the "protected" hierarchy, seems to need username/password
even if I have done this before (to reach the page), otherwise it
doesn't work.
I don't know how things work exactly, but it seems that the applet
behaves as separate from the browser, so that even if I'm already logged
in, the applet still has to. Is this true for all Java applets?
BTW, how can I avoid this? Is there a way to configure apache so that
requests from the applet (or from its address...) aren't processed by
mod_auth?

thanks

d
Davide Bianchi

2006-08-31, 1:43 pm

On 2006-08-31, dawe <me@adomain.no> wrote:
> .htaccess/.htpassword files. The problem I have is that a Java applet,
> that is in the "protected" hierarchy, seems to need username/password
> even if I have done this before (to reach the page), otherwise it
> doesn't work.


Your browser keep sending the user and the password with each subsequent
request, doesn't matter if you want it or not, the Applet is probably
trying to access some resources in the same directory but it does
without sending the authentication information.

> BTW, how can I avoid this?


You could try to use the Satisfy directive to 'unprotect' wathever the
applet is trying to reach, but the simplest way is to put the applet
outside the protected area.

See http://httpd.apache.org/docs/2.2/mod/core.html#satisfy

Davide

--
Anyone who says he can see through women is missing a lot.
-- Julius Henry "Groucho" Marx (http://en.wikiquote.org/wiki/Groucho_Marx)
dawe

2006-08-31, 7:55 pm

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
>
> See http://httpd.apache.org/docs/2.2/mod/core.html#satisfy
>
> Davide


Thanks! I'm going to have a look!

d
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com