HTTP -> Apache2 /var/www only & HTTPS -> Tomcat via mod_proxy only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@localhost

	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@localhost

	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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux