You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul McFerrin <pm...@columbus.rr.com> on 2008/11/16 08:20:58 UTC
[users@httpd] debugging
My Virtual Hosts are not working..
Here is the scoop. Running Apache 1.3 and have the following
configuration file:
NameVirtualHost pmcferrin.homedns.org:80
[[default virtual hosts definitons]]
<VirtualHost pmcferrin.homedns.org:80>
DocumentRoot /usr/local/apache/htdocs
ServerName mcferrin.homedns.org
ErrorLog /usr/local/apache/logs/error_log
CustomLog logs/access_log common
</VirtualHost>
<VirtualHost genealogy.homedns.org:80>
VirtualDocumentRoot /e/genealogy
##DocumentRoot /e/genealogy
ServerName genealogy.homedns.org
ErrorLog /usr/local/apache/logs/error_log
CustomLog logs/access_log common
</VirtualHost>
I have TWO domain names pointing to the same host machine. I ran
apachectl configtest whth no errors. I tried using IP address for the
container; no go. It seems to be setting the first VirtualHost only.
My Dynamic DNS has both domains with the same IP. I'm trying to get
BOTH domains to respond with their different web page, I want to avoid
using IP address to minimize maintenance
What gives? Not find anything useful in the FAQ's.
You can view my COMPLETE httpd.conf file at:
http://pmcferrin.homedns.org/httpd.conf
---------------------------------------------------------------------
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] debugging
Posted by Paul McFerrin <pm...@columbus.rr.com>.
Norman:
Thanks a lot! It works. The httpd.conf file is a tedious piece of code
and it is so easy to spend a lot of time on changing it.
-Paul
Norman Peelman wrote:
> Paul McFerrin wrote:
>> My Virtual Hosts are not working..
>>
>> Here is the scoop. Running Apache 1.3 and have the following
>> configuration file:
>> NameVirtualHost pmcferrin.homedns.org:80
>> [[default virtual hosts definitons]]
>> <VirtualHost pmcferrin.homedns.org:80>
>> DocumentRoot /usr/local/apache/htdocs
>> ServerName mcferrin.homedns.org
>> ErrorLog /usr/local/apache/logs/error_log
>> CustomLog logs/access_log common
>> </VirtualHost>
>>
>> <VirtualHost genealogy.homedns.org:80>
>> VirtualDocumentRoot /e/genealogy
>> ##DocumentRoot /e/genealogy
>> ServerName genealogy.homedns.org
>> ErrorLog /usr/local/apache/logs/error_log
>> CustomLog logs/access_log common
>> </VirtualHost>
>>
>> I have TWO domain names pointing to the same host machine. I ran
>> apachectl configtest whth no errors. I tried using IP address for
>> the container; no go. It seems to be setting the first VirtualHost
>> only.
>>
>> My Dynamic DNS has both domains with the same IP. I'm trying to get
>> BOTH domains to respond with their different web page, I want to
>> avoid using IP address to minimize maintenance
>>
>> What gives? Not find anything useful in the FAQ's.
>>
>> You can view my COMPLETE httpd.conf file at:
>> http://pmcferrin.homedns.org/httpd.conf
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
> Listen 80
> ...
> NameVirtualHost *
>
> <VirtualHost *>
> DocumentRoot /usr/local/apache/htdocs
> ServerName pmcferrin.homedns.org
> ErrorLog /usr/local/apache/logs/error_log
> CustomLog logs/access_log common
> </VirtualHost>
>
> <VirtualHost *>
> DocumentRoot /e/genealogy
> ServerName genealogy.homedns.org
> ErrorLog /usr/local/apache/logs/error_log
> CustomLog logs/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
Re: [users@httpd] debugging
Posted by Norman Peelman <np...@cfl.rr.com>.
Paul McFerrin wrote:
> My Virtual Hosts are not working..
>
> Here is the scoop. Running Apache 1.3 and have the following
> configuration file:
> NameVirtualHost pmcferrin.homedns.org:80
> [[default virtual hosts definitons]]
> <VirtualHost pmcferrin.homedns.org:80>
> DocumentRoot /usr/local/apache/htdocs
> ServerName mcferrin.homedns.org
> ErrorLog /usr/local/apache/logs/error_log
> CustomLog logs/access_log common
> </VirtualHost>
>
> <VirtualHost genealogy.homedns.org:80>
> VirtualDocumentRoot /e/genealogy
> ##DocumentRoot /e/genealogy
> ServerName genealogy.homedns.org
> ErrorLog /usr/local/apache/logs/error_log
> CustomLog logs/access_log common
> </VirtualHost>
>
> I have TWO domain names pointing to the same host machine. I ran
> apachectl configtest whth no errors. I tried using IP address for the
> container; no go. It seems to be setting the first VirtualHost only.
>
> My Dynamic DNS has both domains with the same IP. I'm trying to get
> BOTH domains to respond with their different web page, I want to
> avoid using IP address to minimize maintenance
>
> What gives? Not find anything useful in the FAQ's.
>
> You can view my COMPLETE httpd.conf file at:
> http://pmcferrin.homedns.org/httpd.conf
>
>
> ---------------------------------------------------------------------
> 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
>
>
Listen 80
...
NameVirtualHost *
<VirtualHost *>
DocumentRoot /usr/local/apache/htdocs
ServerName pmcferrin.homedns.org
ErrorLog /usr/local/apache/logs/error_log
CustomLog logs/access_log common
</VirtualHost>
<VirtualHost *>
DocumentRoot /e/genealogy
ServerName genealogy.homedns.org
ErrorLog /usr/local/apache/logs/error_log
CustomLog logs/access_log common
</VirtualHost>
--
Norman
Registered Linux user #461062
-Have you been to www.apache.org yet?-
---------------------------------------------------------------------
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] debugging
Posted by Davide Bianchi <da...@onlyforfun.net>.
Paul McFerrin wrote:
> NameVirtualHost pmcferrin.homedns.org:80
> [[default virtual hosts definitons]]
> <VirtualHost pmcferrin.homedns.org:80>
>
> <VirtualHost genealogy.homedns.org:80>
The 'VirtualHost' should report the same thing that is in the
NameVirtualHost directive, if you've used 'pmcferrin...' you
should use the same in every VHost. If you are not interested in
binding the vhost with one specific IP, just use '*:80'
NameVirtualHost *:80
<VirtualHost *:80>
ServerName ...
...
</VirtualHost>
<VirtualHost *:80>
ServerName ...
</VirtualHost>
> VirtualDocumentRoot /e/genealogy
> ##DocumentRoot /e/genealogy
VirtualDocumentRoot is only used if you have mass-defined virtualhost,
that doesn't seems your case. Use DocumentRoot. And specify also other
directives for such directory, minimum the permissions:
DocumentRoot /wathever/
<Directory "/wathever">
Options ...
Order allow,deny
Allow from all
... other stuff?
</Directory>
Davide
--
Windows and DOS -- a turtle and it's shell.
---------------------------------------------------------------------
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