nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

mod_auth on subdomains with Lighttpd

This is a discussion on mod_auth on subdomains with Lighttpd within the Web servers forums, part of the Mastering Servers category; Hi, I want to set up authentication for a sub domain. From lighttpd.conf: $HTTP["host"] =~ "safetalking.bobstudio.com" { server.indexfiles = ("index.html") ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-25-2008, 09:11 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Ubuntu
Posts: 2
Rep Power: 0
hellhound is on a distinguished road
Default mod_auth on subdomains with Lighttpd

Hi, I want to set up authentication for a sub domain.

From lighttpd.conf:

$HTTP["host"] =~ "safetalking.bobstudio.com" {
server.indexfiles = ("index.html")
server.document-root = "/var/www/safetalking"
auth.debug = 0
auth.backend = "plain"
auth.backend.plain.userfile = "/home/joe/lighttpd/safetalking-auth.txt"
auth.require = ("safetalking.bobstudio.com" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "user=sound"
)
}

safetalking-auth.txt just contains safe:talking

Thanks
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2008, 10:36 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Hi,

The line:
Code:
auth.require = ("safetalking.bobstudio.com" =>
Should be:
Code:
auth.require = ("/var/www/safetalking" =>
Lighttpd setup a password protected directory (directorie
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 07-25-2008, 10:51 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Ubuntu
Posts: 2
Rep Power: 0
hellhound is on a distinguished road
Default

Rockdalinux,

I've tried that still to no avail, the thing is I want the user to login to a part of the website that isnt a directory view, just a static html page.

Thanks

Is this possible?

Last edited by hellhound; 07-27-2008 at 07:41 PM..
Reply With Quote
Reply

Bookmarks

Tags
lighttpd auth subdomain


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

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
lighttpd ProxyPass thunderbirdsei Web servers 0 04-30-2008 11:50 PM
find subdomains in url nvbhole Shell scripting 2 12-22-2007 01:12 PM
Apache and lighttpd together anjanesh Web servers 4 08-29-2007 06:11 PM
redirect to www in lighttpd muks Web servers 11 06-02-2007 11:55 PM
Lighttpd socket with multiple subdomains or single IP muks Web servers 2 03-17-2007 05:48 AM


All times are GMT +5.5. The time now is 11:39 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36