LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-22-2010, 04:48 AM   #1
eliassal
Member
 
Registered: Jan 2008
Posts: 100

Rep: Reputation: 0
Setting a SSL on a new virtual host


Hi, I have FC13, apache 2.2.15, it seems that during setup, I have a default certificate created assigned to port 443 for localhost.
I have created a new virtual host which I can access over internet using port 81 as follows
http://slam.mydomain.fr:81
which works fine. I need to allow ssl on this new VH. I know how to create a certificate but what is confusing me is how to configure this, what I need to change in the config file, how to tell the certificate to work on port other than 443 used by the default VH listening on port 80.
I would appreciate any doc with instructions to follow.
Thanks in advance
 
Old 10-22-2010, 05:38 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You need to change a couple of things to use SSL on a different port than 443. I'm not using fedora, but from the documentation I've found, if you want to change the https port to 444 for example, you'll need:
Code:
Listen 444
NameVirtualHost *:444
and for the SSL-vhost, something like:
Code:
<VirtualHost *:444>
SSLEngine On
SSLCertificateFile /etc/httpd/conf/ssl/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl/server.key
....
</VirtualHost>
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
Apache 2.2.14 ignores SSL Cipher in Virtual Host Jukas Linux - Server 5 03-02-2010 04:44 PM
Apache disable SSL on a virtual host cashton2k Linux - Server 2 01-22-2010 04:17 AM
Solutions to Apache SSL Virtual Host woes (for dynamic IP too) Silly22 Linux - Software 2 10-14-2009 05:07 PM
Apache with wildcard SSL and virtual host crispytwo Linux - Server 2 04-28-2009 08:56 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 06:33 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