Solved

Apache with Web User login

Posted on 1998-09-17
2
405 Views
Last Modified: 2010-04-20
Hi - I'm running a apache server, I'd like it when someone (a local user) goes to a web port ie (www.someserver.com:8888) that then displays
a webpage which they have to login to, once the user name and password is correct - then then get shifted over to the website
how do I do that?

Thanx
0
Comment
Question by:qholiver
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
marcelofr earned 100 total points
ID: 1638060
You don't need "magical" port unless you want them.. You just need to setup an authenticated server. Example: to let only known users to http://you.host.com/usersonly put in your access.conf:

<Location /usersonly>
AuthType Basic
AuthName User
AuthUserFile /some/dir/webpasswd
AuthGroupFile /some/dir/webgroup
</Location>

AuthUserFile has the following format:

username:cryptedpassword

(just the first two fields from an standard /etc/passwd)
you can also "require group somegroup" to let a subset of your user in...

Good Luck
0
 
LVL 3

Expert Comment

by:marcelofr
ID: 1638061
oops!  before the </Location> line you need a require clause as:

require valid-user


0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now