LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-26-2009, 10:08 AM   #1
SteveInTallyFL
Member
 
Registered: May 2008
Location: Tallahassee, FL
Distribution: RHEL4, RHEL 5, OEL4, OEL5
Posts: 60

Rep: Reputation: 17
Apache 1.3_is redirecting a false subdomain possible?


Our Apache server is secured down to a non-standard SSL port and even non-standard HTTPd port. We obtained a single certificate for www.domain.net. (port used in examples is not actual)

I have no trouble getting rewrite rules to direct specific postfix identifiers within the www.domain.net to new locations. What we WANT to do is intercept a non-WWW subdomain prefix on the URL and redirect to a new location, even though we do not actually have any DNS entries for the subdomains.

Example: https://pookie.domain.net:8888 intercepted and rewritten to https://www.domain.net:8888/pookie/

At this time I have this rule in place:

RewriteCond %(HTTP_HOST) ^pookie\.domain\.net:8888(.*)$
RewriteRule ^(.*)$ https://www.domain.net:8888/pookie [R,NC,L]

What happens in browser is that I am warned of an invalid certificate and prompted to create an exception. With the exception I resolve to the default page in the document root directory. I am not getting redirected.

Are we crazy or can this be done?

Last edited by SteveInTallyFL; 01-26-2009 at 01:33 PM. Reason: Add to current information
 
  


Reply

Tags
modrewrite, rewrite


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache / mod_security: fixing false positive 950013 fryzer Linux - Server 5 05-06-2008 10:30 AM
apache / mod_security: fixing false positives jrtayloriv Linux - Server 3 03-01-2008 04:03 PM
Apache 1.3.33 and subdomain fai Linux - Software 1 07-15-2005 03:49 AM
subdomain and apache ziggie216 Linux - Newbie 1 11-12-2003 02:36 PM
Subdomain and apache! eXor Linux - Networking 1 10-13-2002 05:49 PM


All times are GMT -5. The time now is 03:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration