LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-14-2005, 11:32 AM   #1
kkiedrowski
Member
 
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
Apache Page security


this is a quick option I am asking for.
I am setting up some demo/test pages on a virtual host site on Apache 1.3.x server
Now I know that basic Auth or digest auth will work but is there another way? I only want certain people to see the demo site.
now can you have htaccess file for each virtual server that is different? if i place the file outside the served pages won't that just be one big file for all virtual hosts?
 
Old 12-14-2005, 12:40 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Quote:
can you have htaccess file for each virtual server that is different?
You can have a different htaccess file for each directory in your document root.

Quote:
if i place the file outside the served pages won't that just be one big file for all virtual hosts?
If you place it outside of the served pages it will have no effect. I think you may want to use the <Directory> directive, to place access restrictions on this entire demo site. For example, if your demo site is in /var/www/demo then in your httpd.conf:
Code:
 
<Directory /var/www/demo> 
... 
... 
... 
</Directory>
Any rules placed in that directive will only apply to files in /var/www/demo and below. Generally, htaccess files are used to single out individual pages/directories that need special access restrictions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web page with apache regnier Linux - Networking 3 02-15-2005 09:49 PM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
apache first page tpark Linux - Networking 4 02-10-2004 10:34 PM
Apache test page...Now what? Hal Linux - Newbie 6 10-24-2003 10:46 AM
Apache first page kelper Linux - Software 7 03-10-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration