ITworld.com
  Search  
ITworld Home Page ITworld Webcasts ITworld White Papers ITworld Newsletters ITworld News ITworld Topics Careers ITworld Voices ITwhirled Changing the way you view IT

Restricting extranet access

Network World 1/29/01

Steve Blass, Network World

We need to restrict access to part of our hosted extranet Web server using logon IDs and passwords. The hosting service uses Apache Web servers. The documentation says we can set up Apache to require passwords for our Web pages by using .htaccess files and htpasswd. We can upload files and log on using Secure Socket Shell, but need help configuring the site to require passwords.

On this topic

If the Apache Web server software is configured by your provider to allow directory-level user access control using Basic Authentication, you can control access to pages in your site by placing a .htaccess file in each protected directory. If you call it DOThtaccess on your Windows system, you can use the FTP command "put DOThtaccess .htaccess" to upload it to the Unix host running Apache. A .htaccess file is shown here:

AuthType Basic

AuthUserFile /path/To/myUsers.htpasswd

AuthName "mySpace Name"

Require valid-user

When the Web server finds this file in a directory, it will restrict access to users whose passwords are stored in the AuthUserFile listed. Use the htpasswd command from your Web host shell account to create the password files referred to in the .htaccess files. Create the first account with the command "htpasswd -c myFile first user". Additional users are added with the command "htpasswd myFile nextuser".

Steve Blass is a network architect at Change@Work Inc. in Houston. He can be reached at dr.internet@changeatwork.com.




Sponsored Links

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.
IT HelpDesk & Customer Support Software
Internal IT HelpDesk Software with Asset Mgmt. Customer Support Software with Account & Contact Mgmt
TAKE CONTROL OF REMOTE COMPUTERS
Support, configure and install applications and updates remotely for greater efficiency.
FREE network scan for VoIP, IM, Games & More
What’s on your network? Use the Sophos Application Discovery Tool to find out!
Used and Refurbished HP ProCurve Switches
Lifetime Warranties, Professional Testing & Shipping on all HP Equipment Purchases!
» Buy a link now

Advertisements
Sponsored links
KODAK i1400 Series Scanners stand up to the challenge
Top 5 Reasons to Combine App Performance and Security
Locate Hidden Software on business PCs with this free tool
Bring harmony to your mix of UNIX-Linux-Windows computing environments
 Home   Application Development  Web development  Extranet development issues
www.itworld.com    open.itworld.com     security.itworld.com     smallbusiness.itworld.com
storage.itworld.com     utilitycomputing.itworld.com     wireless.itworld.com

 
Contact Us   About Us   Privacy Policy    Terms of Service   Reprints  

CIO   Computerworld   CSO   GamePro   Games.net   Industry Standard   Infoworld   ITworld  
JavaWorld   LinuxWorld  MacUser   Macworld   Network World   PC World   Playlist  

DEMO   IDG Connect   IDG Knowledge Hub   IDG TechNetwork   IDG World Expo  

Copyright © Computerworld, Inc. All rights reserved

Reproduction in whole or in part in any form or medium without express written permission of Computerworld Inc. is prohibited. Computerworld and Computerworld.com and the respective logos are trademarks of International Data Group Inc.