Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:apache

Dies ist eine alte Version des Dokuments!


apache

.htaccess

Weiterleitung

Redirect /index.html /me/

Site-Konfiguration

Unix-Sockets

 
Listen 80
<VirtualHost *:80>
<Location />
    ProxyPass unix:/tmp/helloHTTP.s|http://127.0.0.1/
    ProxyPassReverse unix:/tmp/helloHTTP.s|http://127.0.0.1/
  </Location>
</VirtualHost>

mod_rewrite

http auf http und https auf https

 
RewriteEngine On
 
RewriteCond %{HTTPS} on
RewriteRule ^ - [env=protoc:https]
RewriteCond %{HTTPS} off
RewriteRule ^ - [env=protoc:http]

RewriteCond %{REQUEST_URI} /api/profile/
RewriteRule ^(.*)$ %{ENV:protoc}://whatsee-profile.s3.amazonaws.com/$1 [R,L]

www to non-www

# www to nicht-www
RewriteBase /
RewriteCond %{HTTPS} on
RewriteRule ^ - [env=protoc:https]
RewriteCond %{HTTPS} off
RewriteRule ^ - [env=protoc:http]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ %{ENV:protoc}://%1/$1 [R=301,L]

Siehe auch

Howtos

linux/apache.1450842353.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki