|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
Need Lighttpd help (passwd protecting a directory)
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
what love?
![]() |
I need to password protect a single directory (and to force HTTPS on that single directory), while the rest remain open and use normal HTTP.
Using lighttpd 1.4.19. I've looked for tutorials, but I haven't found what I need. I found this, but I can't pass the first step (config file doesn't have mod_auth): http://www.cyberciti.biz/tips/lightt...rectories.html
__________________
|
|||||||||||||
|
|
|
|
#2 (permalink) | |||||||||||||
|
New to Overclock.net
|
Hey,
I know this won't entire help since you are using something other then apache. But apache has something that I think is similar to what you are trying to do with lighttpd. Apache has something called .htaccess, this allows you to put authentication on specific directories operating under your http server: i.e. if you wanted to protect an administrator's page. Check out some of the tutorials for .htaccess and see if you can't apply that logic to your scenario and the tutorial you found as I believe the process is very similar. Hope this helps. Cheers
__________________
Next on upgrade hit list: Undecided = no money =
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | ||||||||||
|
Networking Nut
|
^Apache is what I would use.
__________________But Lighthttpd has its advantages
|
||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
what love?
![]() |
Yeah, I know about htaccess with apache (I know of a tutorial of how to do this).
But since I'm already running lighttpd, I mayaswel just do it under this.
__________________
|
|||||||||||||
|
|
|
|
#5 (permalink) | |||||||||||||
|
what love?
![]() |
Bump... Anyone?
Perhaps this could be moved into the right forum too, I.E http://www.overclock.net/web-coding/.
__________________
|
|||||||||||||
|
|
|
|
#6 (permalink) | |||||||||
|
makin' the big noise
![]() |
Is this your server, or one you rent? You're going to need to solve the issue with mod_auth prior to setting up any sort of user authentication.
__________________
|
|||||||||
|
|
|
|
#7 (permalink) | ||||||||||||||
|
what love?
![]() |
Quote:
And a problem cropped up overnight, I think lighttpd crashed or something. I never changed anything in the configuration, but nothing will load. This is the site: http://91.121.xxxx - chipp URL edit And it won't load. I never did anything, and yet nothing will come up (not even a directory listing). I've tried restarting lighttpd but it still times out.
__________________
Last edited by Chipp : 4 Weeks Ago at 01:01 PM |
||||||||||||||
|
|
|
|
#8 (permalink) | |||||||||
|
makin' the big noise
![]() |
It is definitely an lighthttpd issue - I was able to successfully connect with an FTP client. On that note, I removed the last few digits of the IP because of the content on the server...
__________________
Last edited by Chipp : 4 Weeks Ago at 01:01 PM |
|||||||||
|
|
|
|
#9 (permalink) | ||||||||||||||
|
what love?
![]() |
Quote:
http is still not working (though I've restarted numerous times), so I might just uninstall and switch to apache.
__________________
|
||||||||||||||
|
|
|
|
#10 (permalink) | |||||||||
|
makin' the big noise
![]() |
Personally, I would - .htaccess files make life for things like this so much easier.
__________________
|
|||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|