RE: Enabling HTTP and HTTPs

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

 



Thank you! A colleage just told me the same.
I need  VirtualHosts to be able to configure HTTP and HTTPS for the same server.

-Jorge


-----Original Message-----
From: André Warnier [mailto:aw@xxxxxxxxxx] 
Sent: Monday, October 26, 2009 4:01 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Enabling HTTP and HTTPs

Jorge Medina wrote:
> Right. I have two Listen directives
> 
> Listen 80  http
> Listen 443 https
> 
> The page I would assume that the page I get is generated by the mod_ssl module. It looks something like this:
> 
Allright, that clears one mystery, and I learned something (I did not know that mod_ssl was doing that; smart little module).

Now the next mystery to me, is how, without VirtualHosts, you can set up a server to answer different pages under HTTP and HTTPS at the same time.
(That is how you say you had it configured, before you removed HTTP).

Fortunately, there seems to be a HowTo specifically for that.
See http://httpd.apache.org/docs/2.2/ssl/ssl_howto.html
(the last one)

The other way I could think of would be to use virtual hosts, like

Listen 80 HTTP
Listen 443 HTTPS

NameVirtualHost *:80
<VirtualHost *:80>
...
</VirtualHost>

NameVirtualHost *:443
<VirtualHost *:443>
... (SSL-based config)
</VirtualHost>

(But that is really a hack, and works only with 1 single HTTPS VirtualHost).

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


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