Re: Fedora Apache Rewriting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/22/06, Tom Spec <samag70-ignore@xxxxxxxx> 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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux