XFileSharing Free - htpasswd only for upload section

Message
Author
alfiere
Posts: 3
Joined: Jan 25, 2010 2:11 pm

htpasswd only for upload section

#1 Postby alfiere » Jan 25, 2010 2:41 pm

Dear all,

I have been trying to set up a password ONLY for the upload part, htpasswd and/or LDAP based.

What I achieve is a password request for the upload part AND the download link too...

Seems to be that index.cgi is called from the upload screen and the download link too :(

Any tips?

Cheers,
Alf

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Jan 26, 2010 10:24 am

You need to set up password authorization for dl.cgi only.

alfiere
Posts: 3
Joined: Jan 25, 2010 2:11 pm

#3 Postby alfiere » Jan 27, 2010 9:29 am

Hi PilgrimX182,
thanks for the answer, but I'm encountering some strange behaviors.


If I set a password on upload_status.cgi
<LocationMatch "/cgi-bin/upload_status.cgi">
when the password is asked, if you click on 'Cancel' the file will be upload.

If I set a password upload.cgi
<LocationMatch "/cgi-bin/upload.cgi">
For the first time/session, I don't have back the script progress bar. The password request has delayed a lot and I receive directly the 'download URL'.

Still need an help :)

Thanks,
Alf

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Jan 29, 2010 9:07 am

That is all correct :)
Apache won't return anything to browser till full upload stream finished pushing to server. That's why delay happens.
Seems you need to secure upload form page.

alfiere
Posts: 3
Joined: Jan 25, 2010 2:11 pm

#5 Postby alfiere » Feb 01, 2010 6:46 pm

No way, if I protect upload_form.html nothing happens.

But If I directly call the url: http://site.com/cgi-bin/Templates/upload_form.html I'm asked for the passwd.


:(


Alf