Page 1 of 1
eine default webseite beim Apache 2 automatisch umleiten
Posted: 11. Aug 2006 1:35
by cc
hallo
wie kann ich eine eine default webseite beim Apache 2
von:
http://host
zu:
https://host
automatisch umleiten ?
gruss
cc
Posted: 11. Aug 2006 8:40
by joersch
Mahlzeit,
funzt bei mir so:
RewriteEngine on
RewriteLog logs/rew-host.log
RewriteRule ^/(.*)$
https://host.de/$1 [R,L]
"host" ist deine domain, die umgeleitet werden soll
Gruss
Posted: 11. Aug 2006 9:48
by cc
danke, aber wo hast du diesen code eingegeben ?
Posted: 11. Aug 2006 9:56
by joersch
Mahlzeit,
da bei mir mehrere (NameVirtualHost) domains auf dem server existieren,
in die jeweilige
<VirtualHost host.de>
...
zeugs für die domain host.de
.....
RewriteEngine on
RewriteLog logs/rew-host.log
RewriteRule ^/(.*)$
https://host.de/$1 [R,L]
</VirtualHost>
Gruss
Posted: 11. Aug 2006 16:09
by cc
bekomme follgende fehlermeldung:
Code: Select all
Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
welches apache module soll installiert sein ?
Posted: 12. Aug 2006 19:27
by joersch
Mahlzeit,
schaue mal in deinem apache-modules verzeichniss nach:
mod_rewrite.so
und ob es in der httpd.conf geladen wird:
LoadModule rewrite_module modules/mod_rewrite.so
Gruss