Author Login
Post Reply
Hi,
Is there a simple way to do the following:
1) All "http" based requests to website www.abc.com go to my Apache2 server regardless of the virtual site
2) All "https" based requests to website www.abc.com are proxied to a private tomcat server via mod_proxy
Only option that I think may work is to do this in sites-enabled/ssl
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin webmaster@(protected)
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
#=======
ProxyPass / balancer://backtcserver/
......snip.....
and this in httpd.conf
<Proxy balancer://backtcserver>
BalancerMember ajp://localhost:8009/
</Proxy>
and this in sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin webmaster@(protected)
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
This way https uses the proxy server and http does not
Thanks
Des
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@(protected)
" from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)