Solved

Apache with Web User login

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.

776 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