LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-08-2008, 08:12 AM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,589

Rep: Reputation: 145Reputation: 145
virtual hosts and basic auth


Hi,
i have to configure some virtual host that share the same DOCROOT to be protected by basic http auth (Apache 2.0.x). There is 1 user configured who can access the documents but unfortunately this user has to authenticate for each virtual host again and again as they have different server names. Is there a way around this? Would be great if you let me know! Thanks!
j.
 
Old 05-09-2008, 05:11 PM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
I've never tried this before but you should only need to setup a single VirtualHost if they're all going to share the same documentroot. Just use the ServerAlias parameter. You can setup your 1 vhost and simply specify multiple ServerAlias's to account for all of the different URL's that will be browsing to the site.

Since the htaccess password protection is Directory based and not URL based users "should" only have to authenticate once. Again I've never tried this but I don't see why it would prompt them over and over again.

Good luck!
 
Old 05-10-2008, 10:59 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,589

Original Poster
Rep: Reputation: 145Reputation: 145
Thanks for your reply! Unfortunately there are various environment variables set in the different vhosts with specific values so i can't use your concept. But maybe i'll find a way around that...
cheers, j
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does dansguardian support basic (not ntlm) auth? drokmed Linux - Software 1 10-20-2006 01:14 PM
AuthType Basic using Virtual Hosts rioguia Linux - Security 3 06-08-2005 11:52 PM
[PROFTPD] LDAP vs basic auth. Creak Linux - Security 1 09-21-2004 07:52 PM
basic auth in apache CodeGeek Linux - Newbie 2 04-14-2004 09:27 AM
Apache 1.3 and basic auth luger Linux - Networking 4 05-17-2002 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration