Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scope of directives 1

Status
Not open for further replies.

grega

Programmer
Feb 2, 2000
932
GB
I'm new to Apache so bear with me :) We're using Apache installed as part of Oracle 9iAS Portal, and I'm trying to configure basic authentication.

In httpd.conf I define an Alias followed by a <Directory> directive, where I set the AllowOverride Authconfig, AuthType, AuthName, AuthUserFile, AuthGroupFile and Require directives. I've done this before successfully on other straight Apache installations so I understand this stuff OK.

The difference this time is that there are a number of virtual hosts defined at the end of httpd.conf. Is it the case that because I am logging on to a virtual host, the directives above are being ignored? Do I need to have the <Directory> directives within each <VirtualHost> container?

Any help much appreciated.

Greg.
 
Correct, vhost directives will override the general directives. Specify your directives within the vhosts and you should be fine.
 
Thanks very much. I'll try this 2moro.

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top