Hallo
ich brauche mal euere Hilfe.
Ich muss einen Apache Revers Proxy für SAP einrichten ,leider ist in der SuSE 9.2 die Datei httpd.conf aufgeteilt und meine Anleitung von SAP ist damit so gut wie nicht zu gebrauchen.
Jetzt habe ich leider keine Ahnung wo ich die Einstellungen für das Modul Rewrite eintrag
Anbei ein kleiner ausschnitt aus der Anleitung.
5 Apache Configuration using URL Rewriting
Perform these steps to configure URL Rewriting:
1. Stop the Apache Web-server
2. Open the configuration file “httpd.conf” from the Apache directory with an editor and apply
the following changes:
· Search for
#LoadModule proxy_module and
#LoadModule rewrite_module
and remove the comment sign (#) at the beginning of the line.
· Search for
#AddModule mod_proxy.c and
#AddModule mod_rewrite.c
and remove the comment sign (#) at the beginning of the line.
· Please note that the configuration for loading these modules can be different dependent
to the version and distribution of the Apache Webserver. The configuration above is just
an example. When you are planning to compile an Apache by your own you should review
the parameters in order to add the optional proxy module (ie. –enable-proxy).
· Configure the rewrite module
RewriteEngine On
RewriteLog "$YOUR_LOGFILE_DIRECTORY$/$YOUR_LOFILENAME"
RewriteLogLevel 9
RewriteRule ^/b2b/(.*) http://@WEB_APPLICATION_DOMAIN_NAME@
Port@/b2b/$1 [P]
· This will redirect all requests starting with "b2b" to the entered J2EE host.
Log level 9 means all redirects are protocoled in the log file you have entered.
Pay attention that this Level is just for testing. Reduce this LogLevel after successful testing.
Otherwise it will kill the performance and danger your disk space (the log file will
grow very fast).
[P] means "use proxy module".
[P,NC] means the "b2b" pattern in the above formula is NOT case-sensitive, i.e. the requests like
http://host
ort/B2B/etc/etc are to be also redirected to http://j2eehost:j2eeport/b2b/etc/etc
3. Open the ../etc/hosts file of the Apache Web-server and add the following line
<IP-Address of SAP J2EE Server> @WEB_APPLICATION_DOMAIN_NAME@
Example:
192.168.0.10 webshop.example.com
Danke schon mal für die Antworten.
ich brauche mal euere Hilfe.
Ich muss einen Apache Revers Proxy für SAP einrichten ,leider ist in der SuSE 9.2 die Datei httpd.conf aufgeteilt und meine Anleitung von SAP ist damit so gut wie nicht zu gebrauchen.
Jetzt habe ich leider keine Ahnung wo ich die Einstellungen für das Modul Rewrite eintrag
Anbei ein kleiner ausschnitt aus der Anleitung.
5 Apache Configuration using URL Rewriting
Perform these steps to configure URL Rewriting:
1. Stop the Apache Web-server
2. Open the configuration file “httpd.conf” from the Apache directory with an editor and apply
the following changes:
· Search for
#LoadModule proxy_module and
#LoadModule rewrite_module
and remove the comment sign (#) at the beginning of the line.
· Search for
#AddModule mod_proxy.c and
#AddModule mod_rewrite.c
and remove the comment sign (#) at the beginning of the line.
· Please note that the configuration for loading these modules can be different dependent
to the version and distribution of the Apache Webserver. The configuration above is just
an example. When you are planning to compile an Apache by your own you should review
the parameters in order to add the optional proxy module (ie. –enable-proxy).
· Configure the rewrite module
RewriteEngine On
RewriteLog "$YOUR_LOGFILE_DIRECTORY$/$YOUR_LOFILENAME"
RewriteLogLevel 9
RewriteRule ^/b2b/(.*) http://@WEB_APPLICATION_DOMAIN_NAME@
· This will redirect all requests starting with "b2b" to the entered J2EE host.
Log level 9 means all redirects are protocoled in the log file you have entered.
Pay attention that this Level is just for testing. Reduce this LogLevel after successful testing.
Otherwise it will kill the performance and danger your disk space (the log file will
grow very fast).
[P] means "use proxy module".
[P,NC] means the "b2b" pattern in the above formula is NOT case-sensitive, i.e. the requests like
http://host
3. Open the ../etc/hosts file of the Apache Web-server and add the following line
<IP-Address of SAP J2EE Server> @WEB_APPLICATION_DOMAIN_NAME@
Example:
192.168.0.10 webshop.example.com
Danke schon mal für die Antworten.