URL permanent umleiten

Alles, was den Apache betrifft, kann hier besprochen werden.

URL permanent umleiten

Postby Lorderich » 26. March 2014 10:10

Hallo zusammen,

ich versuche nun schon seit knapp 1 Tag eine Umleitung für ein paar URLS mit unterschiedlichem Aufbau hinzubekommen.

Anbei die Konfiguration des kompletten Virtual Hosts

<VirtualHost 5.9.90.210:443>
ServerName blog.inside-cc.de

Redirect /dx/Alte_URL https://blog.domain.de/dx/Neue_URL

SSLEngine on
SSLCertificateFile cert/blog.crt
SSLCertificateKeyFile cert/blog.key

ProxyPass /dx/robots.txt http://localhost/config/robots.txt
ProxyPassReverse /dx/robots.txt http://localhost/config/robots.txt

ProxyPass /robots.txt http://localhost/config/robots.txt
ProxyPassReverse /robots.txt http://localhost/config/robots.txt

ProxyPass /sitemap.xml http://localhost/config/sitemap.xml
ProxyPassReverse /sitemap.xml http://localhost/config/sitemap.xml

ProxyPass /ror.xml http://localhost/config/ror.xml
ProxyPassReverse /ror.xml http://localhost/config/ror.xml

ProxyPass /sitemap.html http://localhost/sitemap.html
ProxyPassReverse /sitemap.html http://localhost/config/sitemap.html

ProxyPass /sitemap.xml.gz http://localhost/sitemap.xml.gz
ProxyPassReverse /sitemap.xml.gz http://localhost/config/sitemap.xml.gz

ProxyPass /urllist.txt http://localhost/urllist.txt
ProxyPassReverse /urllist.txt http://localhost/config/urllist.txt

ProxyPass / balancer://BlogCluster/
ProxyPassReverse / balancer://BlogCluster/

<Proxy balancer://BlogCluster>
BalancerMember http://blog.emphasys.corp/web/blog/ loadfactor=10
BalancerMember http://blog.emphasys.corp/web/blog/ loadfactor=50
BalancerMember http://blog.emphasys.corp/web/log/ loadfactor=50

</Proxy>

SSLCertificateChainFile cert/sub.class1.server.ca.pem
SSLCACertificateFile cert/ca.pem

ProxyRequests Off
ProxyVia On

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

ExpiresActive On
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpg "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
ExpiresByType image/vnd.microsoft.icon "access plus 1 months"
ExpiresByType image/x-icon "access plus 1 months"
ExpiresByType image/ico "access plus 1 months"
ExpiresByType application/javascript "now plus 1 months"
ExpiresByType application/x-javascript "now plus 1 months"
ExpiresByType text/javascript "now plus 1 months"
ExpiresByType text/css "now plus 1 months"
ExpiresDefault "access plus 1 days"
</VirtualHost>

Irgendwie will er die alte URL aber nicht auf die neue umleiten. Die Reverse Proxy regeln funktionieren ohne Probleme. Hat jemand eine Idee woran es liegen kann? Da ich mehrere URLs umleiten muss und diese unterschiedlich aufgebaut sind, kann ich leider nicht mit eine simplen Rewrite Logik anfangen.

Danke für eure Zeit im vorraus

Lorderich
Lorderich
 
Posts: 1
Joined: 22. August 2013 17:06
Operating System: Keines

Return to Apache

Who is online

Users browsing this forum: No registered users and 248 guests