You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mike Treloar <mi...@whereedmonton.com> on 2003/02/27 23:33:11 UTC
[users@httpd] VirtualHost on Apache 2
I have just upgraded to Apache 2, and now I can't get VirtualHost to work. I
have tried using * in place of IP address on NameVirtualHost, and tried
putting the IP address in, but nothing seems to work.
I have now moved my VirtualHost entries to /etc/httpd/conf.d/vhost.conf
which now reads as follows:
NameVirtualHost 24.68.136.83
<VirtualHost 24.68.136.83>
DocumentRoot /var/www/html/inof8
ServerName inof8.com
ServerAlias *.inof8.com
</VirtualHost>
<VirtualHost 24.68.136.83>
DocumentRoot /var/www/html/gabriola
ServerName gabriolaisle.com
ServerAlias *.gabriolaisle.com
</VirtualHost>
I would prefer "NameVirtualHost *" but this doesn't work either.
Can anybody help?
Mike Treloar
Tanner Young Marketing
mike@whereedmonton.com
Mike Treloar
Tanner Young Marketing
mike@whereedmonton.com
RE: [users@httpd] VirtualHost on Apache 2
Posted by Mike Treloar <mi...@whereedmonton.com>.
I found something in the config file that said if no index.html then do
something. I deleted this, and now the Virtual Host works.
Thanks for all your help.
Mike
-----Original Message-----
From: Nikunj Virani [mailto:nikunj@netsurf.co.in]
Sent: Friday, February 28, 2003 10:04 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] VirtualHost on Apache 2
1. >[Thu Feb 27 14:13:04 2003] [error] [client 161.184.230.140] Directory
index
>forbidden by rule: /var/www/html/inof8/
Suggestion: This says that there is no index page inside the
/var/www/html/inof8/ directory. Check our the DirectoryIndex directive to
set indexes:
http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex
2. >[Thu Feb 27 15:18:13 2003] [notice] SIGHUP received. Attempting to
restart
>[Thu Feb 27 15:18:14 2003] [warn] NameVirtualHost 24.68.136.83:0 has no
>VirtualHosts
Suggestion: This is just a warning stating you havenot configured any
VirtualHost on 24.68.136.83:0
NameVirtualHost 24.68.136.83:80
<VirtualHost 24.68.136.83:80>
DocumentRoot /var/www/html/inof8
ServerName inof8.com
ServerAlias *.inof8.com
</VirtualHost>
<VirtualHost 24.68.136.83:80>
DocumentRoot /var/www/html/gabriola
ServerName gabriolaisle.com
ServerAlias *.gabriolaisle.com
</VirtualHost>
3. (99)Cannot assign requested address: make_sock: could not bind to
address
>24.68.136.83:80
>no listening sockets available, shutting down
>Unable to open logs
Suggestions: Do u have any other daemon listening on 80 port ? If possible
send your httpd.conf. May be that will help to know the reason.
>4.[Fri Feb 28 07:42:26 2003] [notice] Digest: generating secret for
digest authentication ...
>[Fri Feb 28 07:42:26 2003] [notice] Digest: done
>[Fri Feb 28 07:42:28 2003] [notice] Apache/2.0.40 (Red Hat Linux)
configured -- resuming normal operations
>[Fri Feb 28 07:42:44 2003] [notice] SIGHUP received. Attempting to
restart
>[Fri Feb 28 07:42:52 2003] [notice] Digest: generating secret for digest
authentication ...
>[Fri Feb 28 07:42:52 2003] [notice] Digest: done
>[Fri Feb 28 07:42:53 2003] [notice] Apache/2.0.40 (Red Hat Linux)
configured -- resuming normal operations
Suggestions: Just a couple of notices not actual warnings.
>I don't know how to configtest.
Suggestions: YOUR APACHE PATH/bin/apachectl configtest
Re: [users@httpd] VirtualHost on Apache 2
Posted by Nikunj Virani <ni...@netsurf.co.in>.
1. >[Thu Feb 27 14:13:04 2003] [error] [client 161.184.230.140] Directory index
>forbidden by rule: /var/www/html/inof8/
Suggestion: This says that there is no index page inside the /var/www/html/inof8/ directory. Check our the DirectoryIndex directive to set indexes:
http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex
2. >[Thu Feb 27 15:18:13 2003] [notice] SIGHUP received. Attempting to restart
>[Thu Feb 27 15:18:14 2003] [warn] NameVirtualHost 24.68.136.83:0 has no
>VirtualHosts
Suggestion: This is just a warning stating you havenot configured any VirtualHost on 24.68.136.83:0
NameVirtualHost 24.68.136.83:80
<VirtualHost 24.68.136.83:80>
DocumentRoot /var/www/html/inof8
ServerName inof8.com
ServerAlias *.inof8.com
</VirtualHost>
<VirtualHost 24.68.136.83:80>
DocumentRoot /var/www/html/gabriola
ServerName gabriolaisle.com
ServerAlias *.gabriolaisle.com
</VirtualHost>
3. (99)Cannot assign requested address: make_sock: could not bind to address
>24.68.136.83:80
>no listening sockets available, shutting down
>Unable to open logs
Suggestions: Do u have any other daemon listening on 80 port ? If possible send your httpd.conf. May be that will help to know the reason.
>4.[Fri Feb 28 07:42:26 2003] [notice] Digest: generating secret for digest authentication ...
>[Fri Feb 28 07:42:26 2003] [notice] Digest: done
>[Fri Feb 28 07:42:28 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
>[Fri Feb 28 07:42:44 2003] [notice] SIGHUP received. Attempting to restart
>[Fri Feb 28 07:42:52 2003] [notice] Digest: generating secret for digest authentication ...
>[Fri Feb 28 07:42:52 2003] [notice] Digest: done
>[Fri Feb 28 07:42:53 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
Suggestions: Just a couple of notices not actual warnings.
>I don't know how to configtest.
Suggestions: YOUR APACHE PATH/bin/apachectl configtest
RE: [users@httpd] VirtualHost on Apache 2
Posted by Mike Treloar <mi...@whereedmonton.com>.
Hi Nik,
These are some of the error messages, it's Greek to me, can you make
anything
of it?
[Thu Feb 27 14:13:04 2003] [error] [client 161.184.230.140] Directory index
forbidden by rule: /var/www/html/inof8/
_________________________________________________________
[Thu Feb 27 15:18:13 2003] [notice] SIGHUP received. Attempting to restart
[Thu Feb 27 15:18:14 2003] [warn] NameVirtualHost 24.68.136.83:0 has no
VirtualHosts
________________________________________________________
(99)Cannot assign requested address: make_sock: could not bind to address
24.68.136.83:80
no listening sockets available, shutting down
Unable to open logs
________________________________________________________
[Fri Feb 28 07:42:26 2003] [notice] Digest: generating secret for digest
authentication ...
[Fri Feb 28 07:42:26 2003] [notice] Digest: done
[Fri Feb 28 07:42:28 2003] [notice] Apache/2.0.40 (Red Hat Linux)
configured -- resuming normal operations
[Fri Feb 28 07:42:44 2003] [notice] SIGHUP received. Attempting to restart
[Fri Feb 28 07:42:52 2003] [notice] Digest: generating secret for digest
authentication ...
[Fri Feb 28 07:42:52 2003] [notice] Digest: done
[Fri Feb 28 07:42:53 2003] [notice] Apache/2.0.40 (Red Hat Linux)
configured -- resuming normal operations
________________________________________________________
I don't know how to configtest.
Thanks
Mike
-----Original Message-----
From: Nikunj Virani [mailto:nikunj@netsurf.co.in]
Sent: Thursday, February 27, 2003 10:13 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] VirtualHost on Apache 2
Can u see any thing in logs ? What does configtest say ?
YOUR APACHE PATH/bin/apachectl configtest
-Nik
Re: [users@httpd] VirtualHost on Apache 2
Posted by Nikunj Virani <ni...@netsurf.co.in>.
Can u see any thing in logs ? What does configtest say ?
YOUR APACHE PATH/bin/apachectl configtest
-Nik