Hallo Mario,
danke für Deine Antwort.
Mit folgender Konfiguration hatte ich es versucht, aber leider klappt
das nicht so wie ich es mir vorstelle:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName local.beispiel.de
ServerAlias *.local.beispiel.de
DocumentRoot /srv/www/local.beispiel.de/httpdocs/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/www/local.beispiel.de/httpdocs/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<IfModule mod_proxy.c>
ProxyRequests Off
#ProxyPassMatch
http://(.*?)\.(wks-.*?)\.local\.beispiel\.de/?(.*)?
http://$1.$2/$3
ProxyRemoteMatch (.*) http://test.wks-01-006/$1
#ProxyRemoteMatch
http://(.*?)\.(wks-.*?)\.local\.beispiel\.de/?(.*)? http://$1.$2/$3
#ProxyPassReverse /test/ http://test.wks-01-006/
ProxyVia On
</IfModule>
LogLevel Info
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Am besten wäre es wenn es wie folgt klappen könnte:
ProxyPassMatch http://(.*?)\.(wks-.*?)\.local\.beispiel\.de/?(.*)?
http://$1.$2/$3
Aber ProxyPassMatch schein nur alles hinter dem "/" zu kennen und
nicht die aufgerufenen Domain.
Grüße
Oliver
Am 18. Juli 2011 13:17 schrieb Mario Brandt <[email protected]>:
> Hallo Oliver,
> eigentlich sollte das irgentwas in Kombination sein mit ProxyPreserveHost
> On[1]
> Damit sollte ein ServerAlias *.sub02.local möglich sein im vhost des Server1
>
>
> Gruß
> Mario
>
>
> [1] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
>
> --------------------------------------------------------------------------
> Apache HTTP Server Mailing List "users-de"
> unsubscribe-Anfragen an [email protected]
> sonstige Anfragen an [email protected]
> --------------------------------------------------------------------------
>
>
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an [email protected]
sonstige Anfragen an [email protected]
--------------------------------------------------------------------------