LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-22-2010, 05:14 PM   #1
jnojr
Member
 
Registered: Sep 2007
Location: Chandler, AZ
Posts: 227

Rep: Reputation: 20
Apache "Everything Else" Location?


I want to pass a directive to all but one or two locations. How do I do
that?

Like:

<Location /1>
xxx
</Location>

<Location /2>
xxx
</Location>

<Location "Everything Else">
YYY
</Location>
 
Old 07-22-2010, 10:26 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
"everything else" is your document root directory, so put the directive in there.
Create new directory configs for the ones that need it.

You don't give much detail so it's hard to guess what you're after. What do you mean by "location" ? You cold be referring to virtual hosts or directories.
 
Old 07-23-2010, 11:15 AM   #3
jnojr
Member
 
Registered: Sep 2007
Location: Chandler, AZ
Posts: 227

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by smoker View Post
"everything else" is your document root directory, so put the directive in there.
Create new directory configs for the ones that need it.

You don't give much detail so it's hard to guess what you're after. What do you mean by "location" ? You cold be referring to virtual hosts or directories.
I'm using the Tumbleweed certificate validator to require two-way SSL. I have one or more "Locations" (in the Apache sense, the URLs are proxied to Tomcat) that I want to exempt from certificate validation.

Currently, this is accomplished in it's own .conf file, which consists of:

Quote:
LoadModule val_cert_module modules/vcapache.so
SSLClientValidateConfig /etc/httpd/valicert/vcapache.ini
<Location />
SSLClientValidate
</Location>
What I want to wind up with is:

Quote:
LoadModule val_cert_module modules/vcapache.so
SSLClientValidateConfig /etc/httpd/valicert/vcapache.ini

<Location /test>
# This URL will not have client cert validation
</Location>

<Location />
SSLClientValidate
</Location>
Make sense?

I'll test that and see if it works as expected.
 
  


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
Change default firefox "save as" window location? Wardub Slackware 3 05-22-2010 09:56 PM
Apache rewrite rule to change any "&" to "%26" d1s4st3r Linux - Server 1 02-25-2010 10:01 PM
How to install OpenSSL in wine?-> Getting "no extractable location" error for prereq Chunky77 Linux - Newbie 0 08-10-2009 01:10 AM
what is the correct "trusted location" format for using flashplayer in wine? sonichedgehog Linux - Software 6 09-05-2008 07:19 AM
Get location bar in "Open File" dialog box ZeroFill Linux - Newbie 1 06-30-2006 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:04 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