• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Secure folder login from webpage on Apache

Figuring that there are so many Linux guru's here you might know?

I'm needing to create an on-page login for a secure folder from a websites page. The server is Apache and I've only used Microsoft technology so i'm at a loss.
All I'm needing it to do is pass the user name and password from a forms or other type of field to the htpass? authentication of Apache to allow members to access files behind that page. Is this possible? I realize they could just use the pop up box when they hit the link, but i'd like it to be done directly from the site if possible.

Thanks!
 
This might help. Shows you how to code a login page using php....wrap that around SSL and you should be all set...follow the link to part II to get fancy 🙂
 
Well it's not exactly what i'm looking for. What i'm working with is a secured folder. I want to have two input boxes on a page that allow you to put your user name and password information, then it logs you into that folder instead of using the windows pop up that ask for username/password.

Maybe I can't do it, but I thought it was worth a try 😀
 
As far as i know, yes. I'm not a unix guy though. But htaccess was mentioned when i asked for a secure folder. I'm doing the site design and dev. But the server is located in Scotland and I don't have immediate access to it and someone else does the server config for me.
 
you're kinda hosed.

You can have the popup box, wich is a part of the http standard and is managed by the webserver (in your case apache using an .htaccess file)

or

You can have an "in page" form, which would be managed by your application.

In order to have an "in page" login system that also established the authenticated http session would require some tricky manuvering. I can see how someone would override the environmental variables on the webserver, but how would you convince the client that even though it didn't go through the standard proccess, its now involved in an authenticated connect?

bart
 
Server already has php. I'll look into just using the php method. I figured it wasnt possible, but hell it's worth asking!
 
Back
Top