LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


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

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


Hello,

I have a web server under Debian Etch.

I can access web page using
http://myvhost.mydomain.com

I'd like to provide users a more secure way to access this page
using SSL
I successfuly used this tutorial http://www.debianadmin.com/install-a...bian-etch.html

and I can access to the web page using
https://myvhost.mydomain.com:443

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
so http://myvhost.mydomain.com
and https://myvhost.mydomain.com
(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
 
  


Reply



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 05:07 PM
Allow only ssl, https:// not http:// on apache2 webserver, Linux therapeias Linux - Server 1 04-11-2008 04:03 PM
Redirecting http to https on virtual server Oobydoobywapwap Linux - Security 1 01-25-2008 04:02 PM
LXer: Linux configure pound reverse proxy for Apache http / https web server LXer Syndicated Linux News 0 12-14-2007 07:20 PM
Apache SSL - how to virtual host two or more secure websites on the same machine? bjoshi Linux - Networking 0 08-30-2001 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:53 AM.

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