Solved

Apache with Web User login

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

615 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