?
Solved

Apache with Web User login

Posted on 1998-09-17
2
Medium Priority
?
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
marcelofr earned 200 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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é.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

718 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