Also ich fasse mich kurz, ich will einen apache2-vhost mit http auf einen vhost mit https umleiten... weiss wer wie das geht?
Ich danke im Voraus :)
Debian Woody
Apache2 2.0.52
mod_rewrite to redir http to https
-
superuser1
- Posts: 291
- Joined: 2003-11-26 18:43
- Location: earth
Re: mod_rewrite to redir http to https
Hi...
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
In den entsprechenden VHost folgendes eintragen:
:roll:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
In den entsprechenden VHost folgendes eintragen:
Code: Select all
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.de/$1 [R]Re: mod_rewrite to redir http to https
Code: Select all
<VirtualHost *:80>
ServerName www.domain.tld
Redirect permanent / https://www.domain.tld/
</VirtualHost>
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
