You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "LeTortorec, Jean-Louis" <JL...@healthcore.com> on 2002/04/18 18:00:02 UTC

Starting 2 separate servers

Good morning everyone:


I've installed SSL, with mod-ssl, on my server.

As SSL handles only IP addresses and not domain names, I need to start 2
servers:
- 1 for port 80, www.mydomain.com,
- 1 for port 443, secure.mydomain.com.
(identical IP address for both).

I found out that I need to use the IfDefine directive such as:
	<IfDefine main>
		port 80
	</IfDefine>
	<If Define secure>
		port 443
		SSLEngine on
	</IfDefine>

Then I'm supposed to start Apache by a "httpd -D main", and the second
server by "httpd -D secure".

My question is that till now, I start the server by "apachectl start", and
it looks like the open "-D" does not exist.
Could someone help me?

Thanks much.


Jean-Louis

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Starting 2 separate servers

Posted by Joshua Slive <jo...@slive.ca>.
LeTortorec, Jean-Louis wrote:

> My question is that till now, I start the server by "apachectl start", and
> it looks like the open "-D" does not exist.
> Could someone help me?

Edit the top of the apachectl shell script to make whatever changes you 
need to the httpd command line.  You can create two scripts if you want: 
apachectlsecure apachectlnormal.

But you might want to reconsider your whole technique.  Virtual hosting 
allows one apache to serve two different websites on different ports/ip 
addresses at the same time.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Starting 2 separate servers

Posted by Joshua Slive <jo...@slive.ca>.
LeTortorec, Jean-Louis wrote:

> My question is that till now, I start the server by "apachectl start", and
> it looks like the open "-D" does not exist.
> Could someone help me?

Edit the top of the apachectl shell script to make whatever changes you 
need to the httpd command line.  You can create two scripts if you want: 
apachectlsecure apachectlnormal.

But you might want to reconsider your whole technique.  Virtual hosting 
allows one apache to serve two different websites on different ports/ip 
addresses at the same time.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org