NYCPHP Meetup

NYPHP.org

[nycphp-talk] Apache 2.0/Virtual Host with SSL

Jeff Siegel jsiegel1 at optonline.net
Wed Oct 8 12:23:37 EDT 2003


Thanks so much for tracking this down. Is it my imagination but the
"details" on how it is done is not there? If you've got the details,
pass 'em along! I'm sure there are others that would be interested in
this.

Jeff Siegel

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Tim Gales
Sent: Wednesday, October 08, 2003 10:15 AM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] Apache 2.0/Virtual Host with SSL


Jeff,

There a guy who says:
3) It is possible to have multiple Name Based Virtual Hosts
plus a single SSL Name Based Virtual Host on a single IP,
despite what it says in the mod_ssl faq. I can give the
details on request.

Find out more by looking here:

http://forums.devshed.com/t59482/s.html

T. Gales & Associates
Helping People Connect with Technology
http://www.tgaconnect.com

-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff
Siegel
Sent: Wednesday, October 08, 2003 6:46 AM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] Apache 2.0/Virtual Host with SSL

Thanks for pointing this out. This issue will obviously
require more
investigation.

Jeff

-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]
On Behalf Of deedee
Sent: Monday, October 06, 2003 8:32 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Apache 2.0/Virtual Host with SSL


jeff,
"name based virtual hosts dont work with ssl because of the
nature of
the
ssl protocol"  as quoted from
http://httpd.apache.org/docs-2.0/vhosts/

therefore, you could get this working much 'easier' with
ip-based
virtual
hosts.
each virtual host will require its own ip address.

however in efforts to give you a heads up, you should take a
look at
your
ssl.conf file; i believe you'll need to add your virtual
hosts in that
file
to actually get ssl working.  the default server is all that
is defined
initially.

using https and ssl requires certificates....you'll probably
want to set
up
a separate certificate for each virtual host.

good luck with this one.
deedee

----- Original Message ----- 
From: "Jeff Siegel" <jsiegel1 at optonline.net>
To: <tgales at tgaconnect.com>; "'NYPHP Talk'"
<talk at lists.nyphp.org>
Sent: Monday, October 06, 2003 11:35 AM
Subject: RE: [nycphp-talk] Apache 2.0/Virtual Host with SSL


> An IP address. Below is the relevant section of
httpd.conf.
>
> NameVirtualHost 192.168.1.112:80
>
> <VirtualHost 192.168.1.112:80>
>         DocumentRoot /var/www/html
>         ServerName linux2
> </VirtualHost>
> <VirtualHost 192.168.1.112>
>         DocumentRoot /var/www/html/unap
>         ServerName unap
> </VirtualHost>
> <VirtualHost 192.168.1.112>
>         DocumentRoot /var/www/html/jeff
>         ServerName myproj2
> </VirtualHost>
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of Tim Gales
> Sent: Monday, October 06, 2003 9:39 AM
> To: 'NYPHP Talk'
> Subject: RE: [nycphp-talk] Apache 2.0/Virtual Host with SSL
>
>
> Jeff,
>
> The NameVirtualHost directive can be either an ip address
or
> a domain name
>
> Which one is yours?
>
>
>
> T. Gales & Associates
> Helping People Connect with Technology
> http://www.tgaconnect.com
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff
> Siegel
> Sent: Monday, October 06, 2003 9:21 AM
> To: 'NYPHP Talk'
> Subject: [nycphp-talk] Apache 2.0/Virtual Host with SSL
>
> Wondering how to handle the following problem.
>
> I installed Apache 2.0 using RH 9 (it comes bundled with
PHP
> 4.2.2).
> After setting up virtual hosts using that beautifully
> written article I
> found at http://phundamentals.nyphp.org, I then tested
some
> of my code
> which redirects a user to an HTTPS connection. I keep
> getting an Err
> 404. Thinking it might be the code I created two simple
test
> pages: the
> first page has a link to the second page. Here's the link:
> <a
> href="https://unap/test2.php">click me</a>. Now, "unap" is
a
> virtual
> host on the server and all other links work correctly on
the
> server but
> not this one. *However*, if I change the link to a fixed
IP
> address,
> i.e.,  <a
href="https://192.168.1.112/unap/test2.php">click
> me</a>...it
> works fine. It seems, then, there is an Apache
configuration
> that I'm
> missing. Hopefully someone can point me in the right
> direction.
>
> Jeff Siegel
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>


_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk




More information about the talk mailing list