Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th May 2010, 18:18
gscott187 gscott187 is offline
Junior Member
 
Join Date: Jul 2009
Posts: 17
Thanks: 1
Thanked 5 Times in 4 Posts
Default CentOS 5.X site protection using .htaccess

I'm running ISPConfig 3 on CentOS 5.X.

I have several Web sites served from the same box and want to enable Web directory protection via the .htaccess/.htpasswd mechanism for just one of these sites. I don't want to enable it (or only as a last resort) by global use of .htaccess using AllowOverride in Apache's main httpd.conf file in the /etc/httpd/conf directory.

Question: In which Web site (vhost) specific configuration file should I use the AllowOverride directive for it to correctly password protect the Web site's root directory?

The .htaccess file will be placed in the root directory of the specific Web site. That is: /var/www/clients/client2/web13/web. However, I've tried changing the AllowOverride directive in several locations without success. As far as I can tell from the httpd.conf file, all of the pre-requisite Apache modules are being loaded via httpd.conf for .htaccess protection to work.
Reply With Quote
Sponsored Links
  #2  
Old 27th May 2010, 19:19
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,457
Thanks: 813
Thanked 5,230 Times in 4,099 Posts
 
Default

Quote:
Question: In which Web site (vhost) specific configuration file should I use the AllowOverride directive for it to correctly password protect the Web site's root directory?
You set this on the options tab of the website settings in ISPConfig. No files have to be edited.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
gscott187 (28th May 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 16:22
Centos 5/RHEL 5.x new repository. INF[SZ] Installation/Configuration 1 15th August 2008 20:48
centos 5.1 .htaccess not allowed happz Installation/Configuration 8 20th July 2008 11:11
CentOS 5.x + ISPConfig 2.2.13 bradis Installation/Configuration 2 6th June 2007 09:07
CentOS and .htaccess rlhesson Installation/Configuration 5 31st March 2007 14:00


All times are GMT +2. The time now is 22:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.