tachtler:apache_http_server_centos_7_-_mod_proxy_ajp_-_apache_tomcat_kommunikation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:apache_http_server_centos_7_-_mod_proxy_ajp_-_apache_tomcat_kommunikation [2015/05/11 10:57] – klaus | tachtler:apache_http_server_centos_7_-_mod_proxy_ajp_-_apache_tomcat_kommunikation [2015/05/12 14:54] (aktuell) – [/etc/httpd/conf.d/vhost.conf] klaus | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Apache HTTP Server CentOS 7 - mod_proxy_ajp - Apache Tomcat Kommunikation====== | + | ====== Apache HTTP Server CentOS 7 - mod_proxy_ajp - Apache Tomcat Kommunikation ====== |
[[http:// | [[http:// | ||
Zeile 7: | Zeile 7: | ||
Hierbei gibt es **zwei** Module, die die Kommunikation zwischen dem [[http:// | Hierbei gibt es **zwei** Module, die die Kommunikation zwischen dem [[http:// | ||
- **'' | - **'' | ||
- | - '' | + | - '' |
+ | * Siehe auch internen Link: [[tachtler: | ||
- | Nachfolgend soll der Einsatz des **Modules | + | Nachfolgend soll der Einsatz des **Moduls |
+ | |||
+ | :!: **HINWEIS** - **Eine Installation des Moduls '' | ||
+ | |||
+ | Ab hier werden '' | ||
+ | < | ||
+ | $ su - | ||
+ | Password: | ||
+ | </ | ||
+ | |||
+ | ===== Konfiguration ===== | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | Die Konfigurationsdatei ''/ | ||
+ | |||
+ | :!: **HINWEIS** - Die nachfolgenden Anpassungen sind **__individuell__** und vom jeweiligen Einsatzzweck abhängig und ggf. den persönlichen Bedürfnissen anzupassen! | ||
+ | |||
+ | Die Anpassungen werden mit einem vorangestellten Kommentar in der Form | ||
+ | < | ||
+ | # Tachtler | ||
+ | </ | ||
+ | gekennzeichnet. | ||
+ | |||
+ | (**komplette Konfigurationsdatei**) | ||
+ | <code apache> | ||
+ | # Tachtler | ||
+ | # Only required moduls should be loaded. | ||
+ | # This file configures all the proxy modules: | ||
+ | LoadModule proxy_module modules/ | ||
+ | # LoadModule lbmethod_bybusyness_module modules/ | ||
+ | # LoadModule lbmethod_byrequests_module modules/ | ||
+ | # LoadModule lbmethod_bytraffic_module modules/ | ||
+ | # LoadModule lbmethod_heartbeat_module modules/ | ||
+ | LoadModule proxy_ajp_module modules/ | ||
+ | # LoadModule proxy_balancer_module modules/ | ||
+ | # LoadModule proxy_connect_module modules/ | ||
+ | # LoadModule proxy_express_module modules/ | ||
+ | # LoadModule proxy_fcgi_module modules/ | ||
+ | # LoadModule proxy_fdpass_module modules/ | ||
+ | # LoadModule proxy_ftp_module modules/ | ||
+ | # LoadModule proxy_http_module modules/ | ||
+ | # LoadModule proxy_scgi_module modules/ | ||
+ | </ | ||
+ | |||
+ | Nur die Module | ||
+ | * '' | ||
+ | * '' | ||
+ | sind für die Kommunikation zwischen [[http:// | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | Falls kein // | ||
+ | |||
+ | Nachfolgend ein Beispiel für einen **// | ||
+ | <code apache> | ||
+ | # | ||
+ | # tomcat.tachtler.net (Apache Tomcat Applications) | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@tachtler.net | ||
+ | ServerName tomcat.tachtler.net | ||
+ | ServerAlias www.tomcat.tachtler.net | ||
+ | ServerPath / | ||
+ | |||
+ | Alias /docs / | ||
+ | Alias / | ||
+ | Alias /manager / | ||
+ | Alias /standard / | ||
+ | |||
+ | DocumentRoot "/ | ||
+ | < | ||
+ | Options -Indexes +FollowSymLinks | ||
+ | # Tachtler (enable for .htaccess file support) | ||
+ | # AllowOverride AuthConfig | ||
+ | AllowOverride None | ||
+ | # Tachtler (enable for unlimited access) | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | # Protect META-INF-Directory | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Require all denied | ||
+ | </ | ||
+ | |||
+ | # Protect WEB-INF-Directory | ||
+ | < | ||
+ | AllowOverride None | ||
+ | Require all denied | ||
+ | </ | ||
+ | |||
+ | ProxyRequests Off | ||
+ | |||
+ | ProxyPass /docs ajp:// | ||
+ | ProxyPassReverse /docs ajp:// | ||
+ | ProxyPass / | ||
+ | ProxyPassReverse / | ||
+ | ProxyPass /manager ajp:// | ||
+ | ProxyPassReverse /manager ajp:// | ||
+ | ProxyPass / ajp:// | ||
+ | ProxyPassReverse / ajp:// | ||
+ | ProxyPass /standard ajp:// | ||
+ | ProxyPassReverse /standard ajp:// | ||
+ | |||
+ | DirectoryIndex index.htm index.jsp | ||
+ | |||
+ | ErrorLog logs/ | ||
+ | SetEnvIf X-Forwarded-For " | ||
+ | CustomLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | </ | ||
+ | * //Dies ist nur eine Beispielkonfiguration.// | ||
+ | |||
+ | Die Bedeutung der einzelnen Befehle kann in der Dokumentation [[http:// | ||
+ | |||
+ | <code apache> | ||
+ | ProxyRequests Off | ||
+ | </ | ||
+ | Ermöglicht oder Deaktiviert **Standard**-Forward-Proxy Anfragen. Da hier **__eine__** typische Weiterleitung von Anfragen an eine nach gelagertes // | ||
+ | |||
+ | <code apache> | ||
+ | ProxyPass <URL> ajp://< | ||
+ | </ | ||
+ | Ermöglicht das Zuordnen von URL auf Back-End-Systemen in die Zuständigkeit von Frontend-Systemen. Das Frontend-System agiert hier __nicht__ direkt als konventioneller Proxy oder konventionelles Gateway, sondern ist eher als vorgelagertes System des eigentlichen Servers mit den tatsächlichen Inhalten zu sehen. | ||
+ | |||
+ | <code apache> | ||
+ | ProxyPassReverse <URL> ajp://< | ||
+ | </ | ||
+ | Stellt sicher das auch die Antwort des Back-End-Systems, | ||
tachtler/apache_http_server_centos_7_-_mod_proxy_ajp_-_apache_tomcat_kommunikation.1431334674.txt.gz · Zuletzt geändert: 2015/05/11 10:57 von klaus