Redirect; apache2;

keks

keks

nicht 1337 genug
[GELÖST] Redirect; apache2;

Hallo Forum,


ich habe ein Problem das ich heute nicht mehr alleine Gelöst bekomme (ka warum ich bekomme es einfach nicht hin ...).
Ich habe die doku mehrere male gelesen, gegoogled usw.

Ich möchte einen apache2 "redirect" machen.
Ich habe zugriff auf die apache.conf ua. (root!)


http://rzfoo001/ -> http://rzfoo001.bar.loc/i5server/
http://rzfoo001 -> http://rzfoo001.bar.loc/i5server/

http://rzfoo001/i5server/ -> http://rzfoo001.bar.loc/i5server/
http://rzfoo001/i5server -> http://rzfoo001.bar.loc/i5server/

http://rzfoo001/iuclid5/ -> http://rzfoo001.bar.loc/i5server/blubb/ahh.a
http://rzfoo001/iuclid5 -> http://rzfoo001.bar.loc/i5server/blubb/ahh.a

ich stehe grade aufm Schlauch, vielleicht kann mir da jemand helfen. :hilfe2:
 
Zuletzt bearbeitet:
Da ich den Tomcat benutze existiert der Ordner nicht (JkMount).

Ich habe das nun folgendermaßen gelöst (ok schwarzmagisch aber es funktioniert :)) ):


http://rzfoo001/ -> http://rzfoo001.bar.loc/i5server/
http://rzfoo001 -> http://rzfoo001.bar.loc/i5server/

index.php im www-root mit folgendem inhalt erstellt:
PHP:
<?php
header ("Location: http://rzfoo001.bar.loc/i5server/");
?>
#------------------------------------------




http://rzfoo001/iuclid5/ -> http://rzfoo001.bar.loc/i5server/blubb/ahh.a
http://rzfoo001/iuclid5 -> http://rzfoo001.bar.loc/i5server/blubb/ahh.a

Ordner iuclid5 im www-root erstellt.
index.php mit folgendem inhalt:
PHP:
<?php
header("Location: http://rzfoo001.bar.loc/i5server/blubb/ahh.a");
?>
#------------------------------------------




http://rzfoo001/i5server/ -> http://rzfoo001.bar.loc/i5server/
http://rzfoo001/i5server -> http://rzfoo001.bar.loc/i5server/

relevanter Teil der httpd.conf:
Code:
RewriteEngine On
RewriteLog "/var/log/httpd/mod_rewrite.log"
RewriteLogLevel 1

RewriteCond %{REQUEST_URI} .*/i5server
RewriteCond %{HTTP_HOST} ^rzfoo001$ [NC]
RewriteRule ^(.*)$ http://rzfoo001.bar.loc/i5server/
 

Ähnliche Themen

Squid3 als Reverse Proxy

Problem mit Apache2 + MySQL Server

Brauche Hilfe bei Apache2 Mod_Proxy und Redirect

Grundsätzliche frage zum apache2

Webinterface für Gameserver/Shellscript wird nicht ausgeführt

Zurück
Oben