Fedora Apache Rewriting
Dan Track
dan.track at gmail.com
Wed Mar 22 16:49:48 UTC 2006
On 3/22/06, Tom Spec <samag70-ignore at yahoo.ca> wrote:
> I have a question related to Apache on FC5. I run
> everything over SSL. I access my server at:
>
> https://myserver.domain.com
>
> I have various sites within it. My server also
> answers to:
>
> https://myother.domain.com.
>
> I would like to rewrite anything coming into:
>
> https://myother.domain.com/*
>
> to:
>
> https://myserver.domain.com/maint.html
>
> Is this easy? Any tips?
>
> Tom
Hi
You shouldn't use "domain.com" as that may exist you should use "example.com"
<VirtualHost myother.example.com>
RewriteEngine on
RewriteRule http://www.example.com/?(.*)?$
https://myserver.example.com/maint.html
</VirtualHost>
Hope this helps
Dan
More information about the fedora-list
mailing list