Solved

Apache with Web User login

Posted on 1998-09-17
2
407 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Edit linux file using python 4 39
Oracle 12c patching 1 59
Sendmail STARTTLS error 37 77
Setting up static IP - Ubuntu server 16.04 12 19
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

919 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

16 Experts available now in Live!

Get 1:1 Help Now