LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-18-2005, 10:20 AM   #1
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
apache-ssl setup virtual hosts


I am trying to setup apache-ssl to allow the domains I host to have a secure webpage. I have made a cert for testing with openssl and installed apache-ssl.

I read thru all the docs on how to configure the server but I canít get the name resolution to work. For example I have a domain that resolves http://www.abc123.com but if I try to go to https://www.abc123.com it always goes to the placeholder page no mater how I have the /etc/apache-ssl/httpd.conf configured.

This is on a Debian sarge box.

Can some one lead me in the right direction on how to get this to work with at least one site so that I can start populating them to others?

THX
 
Old 02-18-2005, 10:34 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: apache-ssl setup virtual hosts

Quote:
Originally posted by notolerance
I am trying to setup apache-ssl to allow the domains I host to have a secure webpage. I have made a cert for testing with openssl and installed apache-ssl.

I read thru all the docs on how to configure the server but I canít get the name resolution to work. For example I have a domain that resolves http://www.abc123.com but if I try to go to https://www.abc123.com it always goes to the placeholder page no mater how I have the /etc/apache-ssl/httpd.conf configured.

This is on a Debian sarge box.

Can some one lead me in the right direction on how to get this to work with at least one site so that I can start populating them to others?

THX
You are trying to use https which does not work with name based virtual hosting. You have to use IP based virtual hosting.

http://httpd.apache.org/docs/vhosts/


Basically in your conf file, use

(comment out NameVirtualHost *)

Listen xx.xx.xx.xx:443 (If multiple IP address or just use 443 is single IP)

<VirtualHost xx.xx.xx.xx:443>
ServerName www.abc123.com
DocumentRoot /path/to/docroot
</VirtualHost>

Certificate should be issued to www.abc123.com


After starting the server, you can test it with a browser or an openssl client i.e

openssl s_client -connect www.abc123.com:443


HTH
 
Old 02-18-2005, 12:09 PM   #3
notolerance
LQ Newbie
 
Registered: Jan 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Thx,

But I have tried similar, If I do exactly what you started with a static ip that I have setup in my /etc/network/interfaces

I get the following error when I try to restart the server

Restarting apache-sslstart-stop-daemon: warning: failed to kill 26069: No such process
failed

and apache-ssl never restarts.

I tryed to comment out the virtual host container and apache-ssl starts but it gives me a warning about having an ip assigns to no vitual host. (which of course is correct)

any ideas?

Last edited by notolerance; 02-18-2005 at 12:10 PM.
 
Old 12-22-2005, 04:20 PM   #4
fookanen
LQ Newbie
 
Registered: Apr 2005
Location: Franklin, TN
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
Failed to kill: no such process

Normally a workaround is to

/etc/init.d/<service> zap

This will manually set the service to the stopped state.

You should then be able to start it again.

/etc/init.d/<service> start
 
  


Reply


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
webalizer setup for virtual hosts intranet_man Linux - Security 1 03-03-2005 12:00 PM
Apache + SSL + Virtual Hosts otisthegbs Linux - Software 3 10-05-2004 07:59 PM
Mulltiple SSL Virtual Hosts w/Apache jrbush82 Linux - Software 3 04-12-2004 02:49 PM
Apache2, SSL, 2 Virtual Hosts franticbob Linux - Software 0 04-07-2004 09:48 PM
How to setup virtual hosts for a web site? George2 Linux - Software 4 10-21-2003 03:46 AM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration