Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Feb 09, 2012 5:14 pm 
Offline
Senior Newbie

Joined: Thu Feb 09, 2012 5:04 pm
Posts: 6
hi i'm getting stuck on setting up a self-signed ssl cert on my linux box. I followed the directions here: http://library.linode.com/web-servers/a ... des/centos but still not helping.

When I restart apache i get "NameVirtualHost [ip]:443 has no VirtualHosts"

In my ssl.conf file i have the following:

LoadModule ssl_module modules/mod_ssl.so
#Listen 443

NameVirtualHost [ip]:443
<VirtualHost [ip]:443>
SSLEngine on
SSLProtocol all -SSLv2
SSLCertificateFile /etc/httpd/ssl/httpd.pem
SSLCertificateKeyFile /etc/httpd/ssl/httpd.key
.
.
.
so i do have a virtual host defined..not sure what's going on? anyone help?


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 5:46 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Are you sure you got the IP address exactly right? Check for typos. Also check out this page. (In fact, I'm not sure if you even need NameVirtualHost there, since SSL is technically IP-based virtual hosting.)

Why do you have "Listen 443" commented out?


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 5:55 pm 
Offline
Senior Newbie

Joined: Thu Feb 09, 2012 5:04 pm
Posts: 6
i'm pretty sure i got the ip address right. when i uncomment the listen 443 back in..i get this error (i cna't even boot up apache):


[Thu Feb 09 21:54:29 2012] [warn] NameVirtualHost [ip]:443 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address [::]:443


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 8:18 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
That's really strange. Are you sure there's nothing else listening on port 443? Perhaps there's a duplicate "Listen" or "NameVirtualHost" line somewhere?

Different versions of Apache on different OS's have different configuration hierarchies, and different tutorials also recommend different file/folder structures, so it's not easy to tell where everything is. This can result in duplicate or conflicting entries. Start with httpd.conf and you'll be able to figure out which files/folders are included.


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 11:27 pm 
Offline
Senior Newbie

Joined: Thu Feb 09, 2012 5:04 pm
Posts: 6
yep..i was including the .conf file twice..stupid me!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group