You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark-Nathaniel Weisman <ma...@outlander.us> on 2002/11/30 08:53:01 UTC
RE: [users@httpd] VirtualHosts Help
I can't see if you named the virtualhost server with it's own directive:
#This would be the real virtualhost;
NameVirtualHost 10.10.10.10:80
#and this would be if you were doing SSL with the Virtualhost;
NameVirtualHost 10.10.10.10:443
One item is the forgotten port number on the virtualhost directive:
<VirtualHost 10.10.10.10:80>
Blah, Blah, Blah,
</VirtualHost>
I personally don't use the trailing slash in the documentroot, although someone may correct me, works fine without it.
Sincerely,
Mark-Nathaniel Weisman
President/CEO
Infinite Visions Educational Systems Incorporated
Anchorage, Alaska
http://www.ivedsys.com
weismanm@ivedsys.com
-----Original Message-----
From: Beauford.2003 [mailto:beauford.2003@rogers.com]
Sent: Saturday, November 30, 2002 7:35 PM
To: users@httpd.apache.org
Subject: [users@httpd] VirtualHosts Help
Hi
I am trying to set up VirtualHosts on Apache 1.3.23 and have possibly read
every document that exists on the subject and still can not get this to
work. As soon as I add a virtual host apache won't start - take them out and
it starts no problem. I am trying to use name based virtual hosts . Could
someone explain in simple english what I am doing wrong and what I should
have.
TIA, Beauford
Some info.
I am using a Linksys router that gets the IP from my ISP (lets say
10.10.10.10). I am forwarding all calls to port 80 to my Linux box (where
Apache is) which has a static IP of 192.168.1.10.
I have two domain names that point to my ISP's IP (i.e one.domain.com and
two.domain.com)
This is what I have (although I have tried many variations of this):
# NameVirtualHost 10.10.10.10 (I have also tried using just * or
192.168.1.10)
# <VirtualHost 10.10.10.10> (I have also tried using just * or 192.168.1.10)
# ServerAdmin name@host.com
# DocumentRoot /usr/local/apache/htdocs/webone/
# ServerName one.domain.com
# ServerAlias one.domain.com one
# ErrorLog /var/logs/one-error_log
# CustomLog logs/one-access_log common
# </VirtualHost>
# <VirtualHost 10.10.10.10> (I have also tried using just * or 192.168.1.10)
# ServerAdmin name@host.com
# DocumentRoot /usr/local/apache/htdocs/webtwo/
# ServerName two.domain.com
# ServerAlias two.domain.com two
# ErrorLog /var/logs/two-error_log
# CustomLog logs/two-access_log common
# </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
Re: [users@httpd] VirtualHosts Help
Posted by Herb Stein <he...@herbstein.com>.
----- Original Message -----
From: "Mark-Nathaniel Weisman" <ma...@outlander.us>
To: <us...@httpd.apache.org>
Sent: Saturday, November 30, 2002 1:53 AM
Subject: RE: [users@httpd] VirtualHosts Help
> I can't see if you named the virtualhost server with it's own directive:
> #This would be the real virtualhost;
> NameVirtualHost 10.10.10.10:80
> #and this would be if you were doing SSL with the Virtualhost;
> NameVirtualHost 10.10.10.10:443
>
> One item is the forgotten port number on the virtualhost directive:
> <VirtualHost 10.10.10.10:80>
> Blah, Blah, Blah,
> </VirtualHost>
Also, if I'm not mistaken, the directory that the log files get written
to must exist or Apache will not start.
> I personally don't use the trailing slash in the documentroot, although
someone may correct me, works fine without it.
>
> Sincerely,
> Mark-Nathaniel Weisman
> President/CEO
> Infinite Visions Educational Systems Incorporated
> Anchorage, Alaska
> http://www.ivedsys.com
> weismanm@ivedsys.com
>
>
> -----Original Message-----
> From: Beauford.2003 [mailto:beauford.2003@rogers.com]
> Sent: Saturday, November 30, 2002 7:35 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] VirtualHosts Help
>
>
> Hi
>
> I am trying to set up VirtualHosts on Apache 1.3.23 and have possibly read
> every document that exists on the subject and still can not get this to
> work. As soon as I add a virtual host apache won't start - take them out
and
> it starts no problem. I am trying to use name based virtual hosts . Could
> someone explain in simple english what I am doing wrong and what I should
> have.
>
> TIA, Beauford
>
> Some info.
>
> I am using a Linksys router that gets the IP from my ISP (lets say
> 10.10.10.10). I am forwarding all calls to port 80 to my Linux box (where
> Apache is) which has a static IP of 192.168.1.10.
>
> I have two domain names that point to my ISP's IP (i.e one.domain.com and
> two.domain.com)
>
> This is what I have (although I have tried many variations of this):
>
> # NameVirtualHost 10.10.10.10 (I have also tried using just * or
> 192.168.1.10)
>
> # <VirtualHost 10.10.10.10> (I have also tried using just * or
192.168.1.10)
> # ServerAdmin name@host.com
> # DocumentRoot /usr/local/apache/htdocs/webone/
> # ServerName one.domain.com
> # ServerAlias one.domain.com one
> # ErrorLog /var/logs/one-error_log
> # CustomLog logs/one-access_log common
> # </VirtualHost>
>
>
> # <VirtualHost 10.10.10.10> (I have also tried using just * or
192.168.1.10)
> # ServerAdmin name@host.com
> # DocumentRoot /usr/local/apache/htdocs/webtwo/
> # ServerName two.domain.com
> # ServerAlias two.domain.com two
> # ErrorLog /var/logs/two-error_log
> # CustomLog logs/two-access_log common
> # </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
--
Herb Stein
The Herb Stein Group
www.herbstein.com
herb@herbstein.com
314 952-4601
---------------------------------------------------------------------
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