LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2004, 07:25 AM   #1
apt
Member
 
Registered: Dec 2004
Posts: 34

Rep: Reputation: 15
Apache access control


I have two web pages under same apache web server. apache webserver have been set a access control by using .htaccess (they are in different directory). I just want the set access rights for the 1 site and dont want to ask for the access rights for the second site(Added as Virtual host).

Here is the part of my httpd.conf file settings.

ServerName examplesite


UseCanonicalName Off

DocumentRoot "/home/examplesite1"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

Alias /user "/"

<Directory "/">
Options Indexes
AuthType Basic
AuthName "StoreGrid"
AuthUserFile "/home/examplesite1/.htpasswd"
Require valid-user
</Directory>


NameVirtualHost examplesite2:6060

<VirtualHost examplesite2:6060>
ServerName examplesite2:6060
DocumentRoot /home/examplesite2/
DirectoryIndex index.html
ScriptAlias /php/ "/usr/bin/"
AddType application/x-httpd-php .php

<Directory "/home/examplesite2">
Options FollowSymLinks
AllowOverride None
</Directory>
</VirtualHost>

Is there any way to let them access examplesite2:6060 without any access rights for that site(They do not need to login).
 
Old 12-04-2004, 09:07 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try adding this to your virtual host directory directive:
Order allow,deny
Allow from all
 
Old 12-05-2004, 10:53 PM   #3
apt
Member
 
Registered: Dec 2004
Posts: 34

Original Poster
Rep: Reputation: 15
I tried adding those 2 lines to my Virutal directory directive, but still its asking for the username and password.

here is my virtual host configuration settings.

<VirtualHost examplesite2:6060>
ServerName examplesite2:6060
DocumentRoot /home/examplesite2/
DirectoryIndex index.html
ScriptAlias /php/ "/usr/bin/"
AddType application/x-httpd-php .php

<Directory "/home/examplesite2">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


what's the change i have to do inorder to avoid access permission.
 
Old 12-06-2004, 02:30 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sorry, try adding this as well:
Satisfy any
 
Old 12-06-2004, 11:09 PM   #5
apt
Member
 
Registered: Dec 2004
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks david_ross for your answer. And its working now.
 
  


Reply



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
Access control limiting antidelldude Fedora 0 08-21-2005 11:34 AM
Access Control Firewall Trano Linux - Networking 3 02-23-2005 08:08 AM
Apache 2.0.52 weird error access control.. latino Linux - Networking 0 10-12-2004 10:58 PM
Squid Access Control aaronsols Linux - Networking 1 09-30-2002 05:36 PM
Access Control Lists wgriffin43 Linux - Software 2 09-23-2002 07:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:51 PM.

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