LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-09-2012, 11:33 AM   #1
chrislynch8
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Apache2 Redirects


Hi,

I've an Internal Web App here in work, that when accessed outside of our LANs in different Office the user is directed over https by default. I am using a Self Sign Cert as it is only Staff that are accessing the web application.

I need to NOT redirect three URLS that come into the Apache Server, is this possible.

From outside an Office LAN the following should happen

User enter app.domain.com -> https://app.domain.com
User clicks a link in a Email to app.domain.com/index.php?entry=trackme -> Allow this link to be accessible using http://app.domain.com/index.php?entry=trackme

How can something like this be carried in Apache2?

Rgds
Chris
 
Old 01-09-2012, 06:57 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Maybe add the three urls as negated rewrite condition regex's:

*Untested*
Code:
RewriteCond %{HTTPS} off
RewriteCond %{QUERY_STRING} !^/url1$
RewriteCond %{QUERY_STRING} !^/url2$
RewriteCond %{QUERY_STRING} !^/url3$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 
1 members found this post helpful.
Old 01-10-2012, 03:09 AM   #3
chrislynch8
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks,

That is now working a charm.

Rgds
Chris
 
  


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
[SOLVED] postfixadmin redirects trscookie Linux - Server 6 03-21-2013 07:21 AM
kernel icmp redirects!!! gavin2u Linux - Security 12 07-25-2008 02:26 PM
Redirects to SSL connections jrdioko Linux - Security 2 12-21-2005 08:53 PM
Redirects in Zope (ZMS) nyk Programming 0 09-06-2005 05:08 AM
Apache redirects?! How rincewind Linux - Software 3 02-23-2005 02:43 PM

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

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