Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 4 Weeks Ago   #1 (permalink)
what love?
 
intel ati

Join Date: Mar 2008
Location: what.cd?
Posts: 5,220

Rep: 397 low strife is a proven memberlow strife is a proven memberlow strife is a proven memberlow strife is a proven member
Unique Rep: 317
Trader Rating: 4
Default Need Lighttpd help (passwd protecting a directory)

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
__________________
Quote:
Originally Posted by $till LegendaryU2K View Post
Having the best is cool, but having something good is even better.

System: Blackbox.
CPU
Q6600 stock
Motherboard
ASUS P5Q Pro
Memory
4x2GB G.Skill 800Mhz 5-5-5-15
Graphics Card
Sapphire 4870 1GB
Hard Drive
250GB & 4x 640GB in Raid5
Sound Card
Realtek ALC1200 Onboard
Power Supply
PC Power & Cooling S75QB
Case
Antec Twelve Hundred
CPU cooling
TRUE w\ Sythe Ultra Kaze (3k RPM)
GPU cooling
Stock.
OS
Vista 64-Bit
Monitor
22'' Samsung 226BW & 17'' CMV 1280x1024
low strife is offline Overclocked Account   Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
New to Overclock.net
 
intel nvidia

Join Date: Jan 2009
Posts: 166

Rep: 11 bourne-no longer Unknown
Unique Rep: 11
Trader Rating: 0
Default

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 =

System: My System
CPU
Intel Core 2 Quad Q6600
Motherboard
Asus P5N-E SLI
Memory
OCZ Platinum Rev 2 4096MB PC6400 DDR2 800MHz
Graphics Card
XFX GeForce 8600GT 512MB
Hard Drive
1x Samsung 160GB, 1x 120 Maxtor SATA
Sound Card
On-board
Power Supply
Coolmax CX1-600B PCI Express 600W
Case
THERMALTAKE Wing RS 100 ATX
CPU cooling
XIGMATEK HDT-SD964 92mm Rifle
GPU cooling
stock
OS
Windows 7 RC 32-bit
Monitor
Dell 19' CRT POS
bourne-no longer is offline   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
Networking Nut
 
intel nvidia

Join Date: Mar 2006
Posts: 58

Rep: 2 WBAGAM Unknown
Unique Rep: 2
Trader Rating: 0
Default

^Apache is what I would use.

But Lighthttpd has its advantages
__________________
System: HTPC/Gamer
CPU
Q6600
Motherboard
P5E-VM HDMI
Memory
5gb kingstion 800mhz
Graphics Card
9800gt
Hard Drive
2x 250gb + 1TB
Power Supply
Antec HE 550
Case
Lanbox Lite
OS
Vista ultimate
Monitor
22" samsung and 40" Samsung TV
WBAGAM is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
what love?
 
intel ati

Join Date: Mar 2008
Location: what.cd?
Posts: 5,220

Rep: 397 low strife is a proven memberlow strife is a proven memberlow strife is a proven memberlow strife is a proven member
Unique Rep: 317
Trader Rating: 4
Default

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.
__________________
Quote:
Originally Posted by $till LegendaryU2K View Post
Having the best is cool, but having something good is even better.

System: Blackbox.
CPU
Q6600 stock
Motherboard
ASUS P5Q Pro
Memory
4x2GB G.Skill 800Mhz 5-5-5-15
Graphics Card
Sapphire 4870 1GB
Hard Drive
250GB & 4x 640GB in Raid5
Sound Card
Realtek ALC1200 Onboard
Power Supply
PC Power & Cooling S75QB
Case
Antec Twelve Hundred
CPU cooling
TRUE w\ Sythe Ultra Kaze (3k RPM)
GPU cooling
Stock.
OS
Vista 64-Bit
Monitor
22'' Samsung 226BW & 17'' CMV 1280x1024
low strife is offline Overclocked Account   Reply With Quote
Old 4 Weeks Ago   #5 (permalink)
what love?
 
intel ati

Join Date: Mar 2008
Location: what.cd?
Posts: 5,220

Rep: 397 low strife is a proven memberlow strife is a proven memberlow strife is a proven memberlow strife is a proven member
Unique Rep: 317
Trader Rating: 4
Default

Bump... Anyone?

Perhaps this could be moved into the right forum too, I.E http://www.overclock.net/web-coding/.
__________________
Quote:
Originally Posted by $till LegendaryU2K View Post
Having the best is cool, but having something good is even better.

System: Blackbox.
CPU
Q6600 stock
Motherboard
ASUS P5Q Pro
Memory
4x2GB G.Skill 800Mhz 5-5-5-15
Graphics Card
Sapphire 4870 1GB
Hard Drive
250GB & 4x 640GB in Raid5
Sound Card
Realtek ALC1200 Onboard
Power Supply
PC Power & Cooling S75QB
Case
Antec Twelve Hundred
CPU cooling
TRUE w\ Sythe Ultra Kaze (3k RPM)
GPU cooling
Stock.
OS
Vista 64-Bit
Monitor
22'' Samsung 226BW & 17'' CMV 1280x1024
low strife is offline Overclocked Account   Reply With Quote
Old 4 Weeks Ago   #6 (permalink)
makin' the big noise
 
Chipp's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Coral Gables FL
Posts: 16,420
Blog Entries: 29

FAQs Submitted: 18
Hardware Reviews: 3
Trader Rating: 12
Default

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.

System: Precision M4400
CPU
2.4ghz P8600
Motherboard
Dell
Memory
2x2gb DDR2 800
Graphics Card
Quadro FX770M
Hard Drive
160gb 7200 RPM
Sound Card
E-Mu 0404 USB
OS
Windows 7
Monitor
1280x800 LCD
Chipp is offline Overclocked Account Chipp's Gallery   Reply With Quote
Old 4 Weeks Ago   #7 (permalink)
what love?
 
intel ati

Join Date: Mar 2008
Location: what.cd?
Posts: 5,220

Rep: 397 low strife is a proven memberlow strife is a proven memberlow strife is a proven memberlow strife is a proven member
Unique Rep: 317
Trader Rating: 4
Default

Quote:
Originally Posted by Chipp View Post
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.
My own server, I'm not planning on running any webpages or anything, I just want to password protect a few folders that are in the web directory.

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.
__________________
Quote:
Originally Posted by $till LegendaryU2K View Post
Having the best is cool, but having something good is even better.

System: Blackbox.
CPU
Q6600 stock
Motherboard
ASUS P5Q Pro
Memory
4x2GB G.Skill 800Mhz 5-5-5-15
Graphics Card
Sapphire 4870 1GB
Hard Drive
250GB & 4x 640GB in Raid5
Sound Card
Realtek ALC1200 Onboard
Power Supply
PC Power & Cooling S75QB
Case
Antec Twelve Hundred
CPU cooling
TRUE w\ Sythe Ultra Kaze (3k RPM)
GPU cooling
Stock.
OS
Vista 64-Bit
Monitor
22'' Samsung 226BW & 17'' CMV 1280x1024

Last edited by Chipp : 4 Weeks Ago at 01:01 PM
low strife is offline Overclocked Account   Reply With Quote
Old 4 Weeks Ago   #8 (permalink)
makin' the big noise
 
Chipp's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Coral Gables FL
Posts: 16,420
Blog Entries: 29

FAQs Submitted: 18
Hardware Reviews: 3
Trader Rating: 12
Default

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...

System: Precision M4400
CPU
2.4ghz P8600
Motherboard
Dell
Memory
2x2gb DDR2 800
Graphics Card
Quadro FX770M
Hard Drive
160gb 7200 RPM
Sound Card
E-Mu 0404 USB
OS
Windows 7
Monitor
1280x800 LCD

Last edited by Chipp : 4 Weeks Ago at 01:01 PM
Chipp is offline Overclocked Account Chipp's Gallery   Reply With Quote
Old 4 Weeks Ago   #9 (permalink)
what love?
 
intel ati

Join Date: Mar 2008
Location: what.cd?
Posts: 5,220

Rep: 397 low strife is a proven memberlow strife is a proven memberlow strife is a proven memberlow strife is a proven member
Unique Rep: 317
Trader Rating: 4
Default

Quote:
Originally Posted by Chipp View Post
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...
Just secured the (stupid) anon login mistake I made for FTP, so that's covered up.

http is still not working (though I've restarted numerous times), so I might just uninstall and switch to apache.
__________________
Quote:
Originally Posted by $till LegendaryU2K View Post
Having the best is cool, but having something good is even better.

System: Blackbox.
CPU
Q6600 stock
Motherboard
ASUS P5Q Pro
Memory
4x2GB G.Skill 800Mhz 5-5-5-15
Graphics Card
Sapphire 4870 1GB
Hard Drive
250GB & 4x 640GB in Raid5
Sound Card
Realtek ALC1200 Onboard
Power Supply
PC Power & Cooling S75QB
Case
Antec Twelve Hundred
CPU cooling
TRUE w\ Sythe Ultra Kaze (3k RPM)
GPU cooling
Stock.
OS
Vista 64-Bit
Monitor
22'' Samsung 226BW & 17'' CMV 1280x1024
low strife is offline Overclocked Account   Reply With Quote
Old 4 Weeks Ago   #10 (permalink)
makin' the big noise
 
Chipp's Avatar
 
intel nvidia

Join Date: Dec 2004
Location: Coral Gables FL
Posts: 16,420
Blog Entries: 29

FAQs Submitted: 18
Hardware Reviews: 3
Trader Rating: 12
Default

Quote:
Originally Posted by low strife View Post
Just secured the (stupid) anon login mistake I made for FTP, so that's covered up.

http is still not working (though I've restarted numerous times), so I might just uninstall and switch to apache.
Personally, I would - .htaccess files make life for things like this so much easier.

System: Precision M4400
CPU
2.4ghz P8600
Motherboard
Dell
Memory
2x2gb DDR2 800
Graphics Card
Quadro FX770M
Hard Drive
160gb 7200 RPM
Sound Card
E-Mu 0404 USB
OS
Windows 7
Monitor
1280x800 LCD
Chipp is offline Overclocked Account Chipp's Gallery   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 03:10 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.15645 seconds with 8 queries