Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,552 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,903 people online right now. Registration is fast and FREE... Join Now!




Virtual Hosts under apache using ssl.conf

 
Reply to this topicStart new topic

Virtual Hosts under apache using ssl.conf

no2pencil
20 Aug, 2008 - 12:42 PM
Post #1

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Setting up the Virtual Hosts under apache isn't too difficult. However when you set them up for use under the SSL, they must each have their own port. No matter how I've tried to reconfigure this setup, all instances report back to the initial site using 443.

Any experts out there?

Thanks!

CODE

<VirtualHost _default_:4024>
   ServerName shop.akroncdnr.com:4024
   DocumentRoot /usr/local/www/data/cdnr/sc/
   DirectoryIndex index.php
   ServerName shop.akroncdnr.com
   ErrorLog /var/log/apache/cdnr/httpd-error.log
   TransferLog /var/log/apache/cdnr/httpd-access.log

  SSLEngine on
  SSLCipherSuite  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  SSLCertificateFile /usr/local/www/data/cdnr/ssl/akroncdnr.crt
  SSLCertificateKeyFile /usr/local/www/data/cdnr/ssl/akroncdnr.key
</VirtualHost>


& when I view the firewall, there is no traffic hitting 4024

QUOTE

72# ipfw show | grep 4024
01701 0 0 allow ip from any to 192.168.0.198 dst-port 4024

User is online!Profile CardPM
+Quote Post

mocker
RE: Virtual Hosts Under Apache Using Ssl.conf
20 Aug, 2008 - 03:00 PM
Post #2

D.I.C Regular
Group Icon

Joined: 14 Oct, 2007
Posts: 258



Thanked: 15 times
Dream Kudos: 25
My Contributions
You can only have one SSL host setup per IP. If you want to run several virtual hosts with their own ssl certificates, they will all need to be bound to an IP that does not already have an ssl certificate setup on it.
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Virtual Hosts Under Apache Using Ssl.conf
20 Aug, 2008 - 05:21 PM
Post #3

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Ok, so I have a few virtual IPs setup, & I got it to answer to the inside ipaddress.

192.168.0.126 is listening & offers the page I want on port 443
192.168.0.128 is listening & offers another page that I want on port 443

But I can't route outside traffic to 443 to both IP addresses, so I'm going to have to forward 443 on the 2nd to another port on the router.

Cool, thanks!
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:14PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month