You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by jw...@ramprecision.com on 2003/07/22 03:40:50 UTC

[users@httpd] dyndns + vhosts + ssl

I'm trying to host 3 name-based vhosts off of one dyndns ip address. One of
these vhosts is to be secured with ssl. There will be no overlap between the
vhosts. I have what seems to a working config, except for the fact that
Apache says scary stuff during startup like- 

"www root #  [error] VirtualHost *:443 -- mixing * ports and non-* ports
with a NameVirtualHost address is not supported, proceeding with undefined
results"

I REALLY don't like the sound of "undefined results". Is there a more
correct way to achieve this? Is it safe to continue with this configuration?


Sample Config
-------------------------  
 
<NameVirtualHost *>

<VirtualHost *>
ServerName foo.domain.com
DocumentRoot /var/www/foo
</VirtualHost>

<VirtualHost *>
ServerName bar.domain.com
DocumentRoot /var/www/bar
</VirtualHost>

<VirtualHost *:443>
ServerName secure.domain.com
DocumentRoot /var/www/baz
SSLEngine on
</VirtualHost>



---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Installation/Configuration Problems

Posted by David Blomstrom <Ge...@geobop.com>.
At 06:53 PM 7/23/2003 -0400, you wrote:

>You are missing the \bin folder one more time:
>c:\progra~1\apache~1\apache2\bin\apache -k install

BINGO! I think it worked. I didn't see a confirmation, so I typed in it in 
again, and it said "Apache service is already installed," or something like 
that. Thanks for the tip.




---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Installation/Configuration Problems

Posted by Jeff Cohen <su...@gej-it.com>.
> -----Original Message-----
> From: David Blomstrom [mailto:GeoBear@geobop.com]
> Sent: Wednesday, July 23, 2003 2:03 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Installation/Configuration Problems
> 
> At 11:32 AM 7/23/2003 -0400, you wrote:
> 
> >"Which version of windows do you use???"
> 
> Windows XP Pro.
> 
> >"If you are using NT/2000/XP, it might be better for you to install
Apache
> >as a system service by typing in the command prompt
> >"c:\progra~1\apache~1\apache2\apache -k install" and then control it
from:
> >start-settings - control panel->administrative tools->services = you
> >should have there the apache2 service installed and can be controlled by
> >the windows OS."
> 
> Hmmmm... Thanks for the tip, but it doesn't seem to work. I clicked Start
>
> Run, then typed in "command" and clicked OK. A small black window with
> "C:\WINDOWS\System32\command.com" at the top opened. I typed
> c:\progra~1\apache~1\apache2\apache -k install, then clicked OK. I got a
> message that it is not recognized as an internal or external operable
program.

You are missing the \bin folder one more time:
c:\progra~1\apache~1\apache2\bin\apache -k install

> 
> 
> 
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Installation/Configuration Problems

Posted by David Blomstrom <Ge...@geobop.com>.
At 11:32 AM 7/23/2003 -0400, you wrote:

>"Which version of windows do you use???"

Windows XP Pro.

>"If you are using NT/2000/XP, it might be better for you to install Apache
>as a system service by typing in the command prompt 
>"c:\progra~1\apache~1\apache2\apache -k install" and then control it from: 
>start-settings - control panel->administrative tools->services = you 
>should have there the apache2 service installed and can be controlled by 
>the windows OS."

Hmmmm... Thanks for the tip, but it doesn't seem to work. I clicked Start > 
Run, then typed in "command" and clicked OK. A small black window with 
"C:\WINDOWS\System32\command.com" at the top opened. I typed 
c:\progra~1\apache~1\apache2\apache -k install, then clicked OK. I got a 
message that it is not recognized as an internal or external operable program.



---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Installation/Configuration Problems

Posted by Jeff Cohen <su...@gej-it.com>.

-----Original Message-----
From: David Blomstrom <Ge...@geobop.com>
To: users@httpd.apache.org
Date: Wed, 23 Jul 2003 05:34:29 -0700
Subject: [users@httpd] Installation/Configuration Problems

> I'm continuing to configure Apache, and I'im making some progress now
> that 
> I solved some problems I was having with Dreamweaver and Windows. But I
> just ran into a couple other Apache problems.
> 
> First, I just discovered that I can't create a desktop shortcut,
> because I 
> can't find Apache's .exe file. It's supposed to be at C:\Program 
> Files\Apache Group\Apache\Apache.exe (Apache2\Apache.exe on my
> computer), 
> but there are only folders and files with .txt extensions in that
> folder. 
> If I can access Apache's welcome page by typing http://localhost:8080/
> into 
> a browser, then I mush have an Apache .exe file somewhere, right?

Apache.exe is in c:\program files\apache group\apaceh2\bin\apache.exe - 
in your case.

> 
> Second, I read that you aren't supposed to close the Apache console
> window; 
> rather, you're supposed to open a second window and type in a command
> to 
> shut it down. So I opened a second window, and discovered that I can't
> type 
> anything in it. My keyboard's working fine; I can type in other
> programs, 
> but all I see in the Apache window is a blank black screen with a
> blinking 
> cursor, and I can't type anything in it.

Open start->run-> type in "command"-> at the command prompt 
type "c:\progra~1\apache~1\apache2\bin\apache -k stop"

That should stop apache from running in console mode.

> 
> Any tips?
> 

Which version of windows do you use???
If you are using NT/2000/XP, it might be better for you to install Apache 
as a system service by typing in the command prompt "c:\progra~1\apache~1
\apache2\apache -k install" and then control it from: start->settings-
>control panel->administrative tools->services = you should have there 
the apache2 service installed and can be controlled by the windows OS.


All the best,
Jeff Cohen
Support@gej-it.com

> 
> 
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Installation/Configuration Problems

Posted by David Blomstrom <Ge...@geobop.com>.
I'm continuing to configure Apache, and I'im making some progress now that 
I solved some problems I was having with Dreamweaver and Windows. But I 
just ran into a couple other Apache problems.

First, I just discovered that I can't create a desktop shortcut, because I 
can't find Apache's .exe file. It's supposed to be at C:\Program 
Files\Apache Group\Apache\Apache.exe (Apache2\Apache.exe on my computer), 
but there are only folders and files with .txt extensions in that folder. 
If I can access Apache's welcome page by typing http://localhost:8080/ into 
a browser, then I mush have an Apache .exe file somewhere, right?

Second, I read that you aren't supposed to close the Apache console window; 
rather, you're supposed to open a second window and type in a command to 
shut it down. So I opened a second window, and discovered that I can't type 
anything in it. My keyboard's working fine; I can type in other programs, 
but all I see in the Apache window is a blank black screen with a blinking 
cursor, and I can't type anything in it.

Any tips?



---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] dyndns + vhosts + ssl

Posted by Jeff Cohen <su...@gej-it.com>.
The right config should be like that:

NameVirtualHost *:80
NameVirtualHost *:443


<VirtualHost *:80>
ServerName foo.domain.com:80
DocumentRoot /var/www/foo
</VirtualHost>

<VirtualHost *:80>
ServerName bar.domain.com:80
DocumentRoot /var/www/bar
</VirtualHost>

<VirtualHost *:443>
ServerName secure.domain.com:443
DocumentRoot /var/www/baz
SSLEngine on
</VirtualHost>

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: jwsacksteder@ramprecision.com [mailto:jwsacksteder@ramprecision.com]
> Sent: Monday, July 21, 2003 9:41 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] dyndns + vhosts + ssl
> 
> I'm trying to host 3 name-based vhosts off of one dyndns ip address. One
of
> these vhosts is to be secured with ssl. There will be no overlap between
the
> vhosts. I have what seems to a working config, except for the fact that
> Apache says scary stuff during startup like-
> 
> "www root #  [error] VirtualHost *:443 -- mixing * ports and non-* ports
> with a NameVirtualHost address is not supported, proceeding with undefined
> results"
> 
> I REALLY don't like the sound of "undefined results". Is there a more
> correct way to achieve this? Is it safe to continue with this
configuration?
> 
> 
> Sample Config
> -------------------------
> 
> <NameVirtualHost *>
> 
> <VirtualHost *>
> ServerName foo.domain.com
> DocumentRoot /var/www/foo
> </VirtualHost>
> 
> <VirtualHost *>
> ServerName bar.domain.com
> DocumentRoot /var/www/bar
> </VirtualHost>
> 
> <VirtualHost *:443>
> ServerName secure.domain.com
> DocumentRoot /var/www/baz
> SSLEngine on
> </VirtualHost>
> 
> 
> 
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org