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