Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-09-2008, 11:11 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 6

Rep: Reputation: 0
Apache 2 / SSL and virtual host under GNU/Linux Debian Etch - http and https


I have a web server under Debian Etch.

I can access web page using

I'd like to provide users a more secure way to access this page
using SSL
I successfuly used this tutorial

and I can access to the web page using

but I have a problem
I would like to be able to provide both a
http access and a https access
without providing port in the url
(on the same server, same ip)

Is it possible ?

If not I can put
NameVirtualHost *:80
NameVirtualHost *:443
in my /etc/apache2/sites-available/default conf file

but should I put exactly the same parameters for both virtualhost (<VirtualHost *:80> and <VirtualHost *:443>) or is there a way to say something like <VirtualHost *:443> is same as 80 except you should add
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem

(because I have some directories protected using AuthType Basic
and I don't consider that copy/paste it is a good idea)

Kind regards


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solutions to Apache SSL Virtual Host woes (for dynamic IP too) Silly22 Linux - Software 2 10-14-2009 06:07 PM
Allow only ssl, https:// not http:// on apache2 webserver, Linux therapeias Linux - Server 1 04-11-2008 05:03 PM
Redirecting http to https on virtual server Oobydoobywapwap Linux - Security 1 01-25-2008 05:02 PM
LXer: Linux configure pound reverse proxy for Apache http / https web server LXer Syndicated Linux News 0 12-14-2007 08:20 PM
Apache SSL - how to virtual host two or more secure websites on the same machine? bjoshi Linux - Networking 0 08-30-2001 08:01 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration