| View previous topic :: View next topic |
| Author |
Message |
alfiere
Joined: 25 Jan 2010 Posts: 3
|
Posted: Jan 25, 2010 2:41 pm Post subject: htpasswd only for upload section |
|
|
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 |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Jan 26, 2010 10:24 am Post subject: |
|
|
| You need to set up password authorization for dl.cgi only. |
|
| Back to top |
|
 |
alfiere
Joined: 25 Jan 2010 Posts: 3
|
Posted: Jan 27, 2010 9:29 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Jan 29, 2010 9:07 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
alfiere
Joined: 25 Jan 2010 Posts: 3
|
|
| Back to top |
|
 |
|