Hi all,
i´m using the standard rh9 apache config with ssl enabled, which works
fine. now i want to redirect an other domain via mod_proxy to an other
apache server without using ssl.
i´ve tried to setup a virtual host with this config:
....
NameVirtualHost <serverIP>
<VirtualHost <serverIP>:80>
# default virtual host which uses the standard apache server config
</VirtualHost>
<VirtualHost <serverIP>:80>
ServerAdmin root RemoveThis @localhost.localdomain
ServerName
www.proxy-domain.de
ServerAlias proxy-domain.de
ProxyRequests On
<Directory proxy:*>
Order Allow,Deny
Allow From All
</Directory>
ProxyPass /
http://<target-server>/
ProxyPassReverse /
http://<target-server>/
</VirtualHost>
....
i´ve changed the virtualhost tag in ssl.conf to:
<VirtualHost <serverIP>:443>
</VirtualHost>
now my problem: apache doesn´t redirect the
www.proxy-domain.de domain
anymore when ssl is enabled. when i access
www.proxy-domain.de with a
browser i only see the content of the default server. no messages in
error_log or access_log.
i´ve read about the problems with namebased virtualhosts and ssl.
what i want to do is, to have the default server running on my local
domain with ssl and when there is a request for my
www.proxy-domain.de
than apache should redirect this request to the target-server. can
this be done with mod_rewrite?
comments anyone?
greetings, Markus Lang