Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: how best to bypass client cert requirement for localhost? |
|
Author |
|
spiffly
Joined: 20 Feb 2013 Posts: 2
|
Posted: Wed 20 Feb '13 17:08 Post subject: how best to bypass client cert requirement for localhost? |
|
|
Hi,
I just setup an intranet wiki running apache2.2 on ubuntu 12.04. The server currently requires two-way certificate authentication (i.e. a server cert AND client certs).
In <VirtualHost *:80>, I'm simply doing a:
Redirect permanent / https://<intranetSite>
Everything works dandy, except now that I'd like to find a way to bypass the client cert check for localhost so that I can run some maintenance scripts via cron on the server. Or perhaps it's possible to bypass SSL entirely, just for localhost?
I'm pretty new with apache configuration; any suggestions or hints on how to best accomplish this or get me moving in the right direction?
Thanks in advance! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 21 Feb '13 20:24 Post subject: |
|
|
You would need a RewriteRule with [R=301,L] to do that, along with a preceding RewriteCond that tests the HTTP_HOST information. |
|
Back to top |
|
spiffly
Joined: 20 Feb 2013 Posts: 2
|
Posted: Fri 22 Feb '13 9:07 Post subject: |
|
|
Hi James,
I've actually been reading up on RewriteRules thinking that was a good way to handle this, so glad to know I'm on the right track.
Thanks for the tip! |
|
Back to top |
|
|
|
|
|
|