Comments on Hosting Multiple SSL Web Sites On One IP Address With Apache 2.2 And GnuTLS (Debian Lenny)

Hosting Multiple SSL Web Sites On One IP Address With Apache 2.2 And GnuTLS (Debian Lenny) This tutorial describes how you can host multiple SSL-encrypted web sites (HTTPS) on one IP address with Apache 2.2 and GnuTLS on a Debian Lenny server.

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Mark Waters

Works a treat on Ubuntu 10.04 PPC too Thanks!

By:

This might be something that could be included in ISPConfig3. All the sites could be hosted with the same address, even the SSL protected admin panel (and /phpmyadmin.) And we could change the panel away from port 8080 to /ispconfig so that even those who are restricted to only using port 80 can have access to the control panel.

By:

Thx for the examples. Can we get a HowTo on Pound plz.

By: TheFu

Pound, a reverse proxy, can be used to provide an SSL front end to multiple back end web apps, web sites, and java apps. This isn't really the same thing as the article provides - it is not name-based virtual hosting to SSL. It isn't perfect, but works surprisingly well.

Basically, you install the SSL cert into pound.cfg and listen on port 443. Then configure multiple backends and proxy names to normal HTTP (non-SSL) services running either on the same or different machines. You cannot reverse proxy SSL/HTTPS webapps, but you can redirect them (probably to a different port).

Pound is small, efficient, and really easy to get working. It also allows URL validation to prevent unwanted external requests.

http_url --> https_url/subdir  --> webapp

  • http://webmail/ --> https://pub-ip/webmail/  ---> Zimbra
  • http://wiki/ --> https://pub-ip/wiki/  ---> MediaWiki
  • http://dms/ --> https://pub-ip/dms/  ---> Alfresco
  • http://vpn/ --> https://pub-ip/vpn/  ---> Adito
  • http://crm/ --> https://pub-ip/crm/  ---> vTiger
  • http://redmine/ --> https://pub-ip/redmine/  ---> Redmine
  • http://internal/ --> https://pub-ip/int/  ---> internal server
  • http://blog/ --> https://pub-ip/blog/  ---> 3 blog servers using round robin load balancing
  • Anything you like.

The issue comes when some webapps manually build links (Zimbra 5.x does this) so links to other parts of the webapp fail to work in some situations. This doesn't always happen, but having to manually add or remove the "s" from HTTPS gets old.


You can use HTTP name-based virtual hosts on a single HTTP machine (or with pound) to redirect to these different SSL subdirectories too. 

 I think Nginx reverse proxy can do the same sorts of things that pound does.

By: Ramin

Hi guys,

 I am wondering if this can be done on centos6.2 and ispconfig 3. if yes any one has the how to? Till do you have any insight?

take care...