Re: How to redirect http to https with Apache/SVN/SSL

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

 



Patrick W. Barnes wrote:
On Sunday 10 May 2009 18:30:50 Patrick W. Barnes wrote:
<VirtualHost host.domain.com:80>
    ServerName host.domain.com
    ...
    RewriteEngine On
    RewriteRule ^/$ https://host.domain.com/ [R,L]
    RewriteRule ^/(.*) https://host.domain.com/$1 [R,L]
</VirtualHost>


Forgot to mention...

Redirecting SVN causes it to display a message to the user, rather than follow the redirect. Since I assume you want to force SSL to be used, setting up non-HTTPS access or having Apache proxy non-HTTPS queries is probably not what you want, and having SVN display that message and force users to specify HTTPS may be your best option.

Thanks!
I tried your above suggestion, and this is what I got:

$ svn list http://host.domain.com/svn/svn1
svn: PROPFIND request failed on '/svn/svn1'
svn: PROPFIND of '/svn/svn1': 302 Found (http://host.domain.com)

Is this expected?
The above modification changes the error code from
"405 Method Not Allowed" to "302 Found (http://host.domain.com)"


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux