You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Harrell, Roger" <rj...@bechtel.com> on 2003/09/30 22:53:03 UTC

[users@httpd] Virtual Host directives ignored?

I am havning some trouble with the VirtualHost directives. It appears Apache
is ignoring them. No matter what domain I browse to it is serving from the
document root. It's not even pulling the first VirtualHost directive info
for any domain. I have set:
NameVirtualHost 
to my IP

Then set several:
<VirtualHost myip>
  ServerAdmin email
  DocumentRoot /var/www/html
  ServerName www.somedomain.com
  ServerAlias somedomain.com www.somedomain.com
  ErrorLog /etc/httpd/logs/error_log
  TransferLog /etc/httpd/logs/access_log
  LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"
</VirtualHost>


I initially tried with * for the IP but when trying to start http got a
"using * and non-* based virtual hosting not supported" error. Not sure why.
In any case VirtualHosting doesn't seem to be working. Are there other flags
that need to be set? I didn't find anything in the docs other than
NameVirtualHost

Thanks,
Roger

---------------------------------------------------------------------
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] mod_php question

Posted by Jimmy McDonald <io...@bsdshell.dyndns.org>.
yeah, it turns out the php is built into the apache
that comes with Redhat. I never knew.. I'd say "Who knew?"
but many of you would write back and say "Me!"

:)

Thanks,
Jimmy


On Wed, 1 Oct 2003, Nathan Ollerenshaw wrote:

> On Oct 1, 2003, at 6:50 AM, Jimmy McDonald wrote:
>
> > I'm kind of confused. I just installed Redhat 9 and chose php as an
> > option during install.
>
> [...]
>
> > So php isn't built in and there is no module installed and
> > httpd.conf doesn't try to load one.
>
> Actually, I think you'll find that RedHat's httpd.conf includes a
> directory in /etc/httpd that has one file per module to load, or
> something like that. I never checked because it's always worked for me
> to just install all the packages and start apache.
>
> Try putting a index.php file in /var/www/htdocs (or is it
> /var/www/html?) with the following:
>
> <?php
>
> phpinfo();
>
> ?>
>
> then hit the root of the webserver. You should see some nice output
> from PHP telling you what it was compiled with, the defaults that have
> been set, etc.
>
> Nathan.
>
>
> ---------------------------------------------------------------------
> 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] mod_php question

Posted by Nathan Ollerenshaw <na...@valuecommerce.ne.jp>.
On Oct 1, 2003, at 10:57 AM, Nathan Ollerenshaw wrote:

> Actually, I think you'll find that RedHat's httpd.conf includes a 
> directory in /etc/httpd that has one file per module to load, or 
> something like that. I never checked because it's always worked for me 
> to just install all the packages and start apache.

Actually, I'm wrong, I just checked.

I think it adds a block to the corect place in the httpd.conf when you 
add the package.

Nathan.


---------------------------------------------------------------------
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] mod_php question

Posted by Nathan Ollerenshaw <na...@valuecommerce.ne.jp>.
On Oct 1, 2003, at 6:50 AM, Jimmy McDonald wrote:

> I'm kind of confused. I just installed Redhat 9 and chose php as an
> option during install.

[...]

> So php isn't built in and there is no module installed and
> httpd.conf doesn't try to load one.

Actually, I think you'll find that RedHat's httpd.conf includes a 
directory in /etc/httpd that has one file per module to load, or 
something like that. I never checked because it's always worked for me 
to just install all the packages and start apache.

Try putting a index.php file in /var/www/htdocs (or is it 
/var/www/html?) with the following:

<?php

phpinfo();

?>

then hit the root of the webserver. You should see some nice output 
from PHP telling you what it was compiled with, the defaults that have 
been set, etc.

Nathan.


---------------------------------------------------------------------
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] mod_php question

Posted by Jimmy McDonald <io...@bsdshell.dyndns.org>.
Ok,

I'm kind of confused. I just installed Redhat 9 and chose php as an
option during install.

# rpm -qa | grep php
php-imap-4.2.2-17
php-4.2.2-17
php-ldap-4.2.2-17
php-mysql-4.2.2-17
php-odbc-4.2.2-17

# /usr/sbin/httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c


So php isn't built in and there is no module installed and
httpd.conf doesn't try to load one.

The php.net site doesn't have a mod_php binary and the RPMS
on the CD don't show one.

Do I have any choice other than building my own module?





---------------------------------------------------------------------
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] Virtual Host directives ignored?

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 30 Sep 2003, Harrell, Roger wrote:

> I am havning some trouble with the VirtualHost directives. It appears Apache
> is ignoring them. No matter what domain I browse to it is serving from the
> document root. It's not even pulling the first VirtualHost directive info
> for any domain. I have set:
> NameVirtualHost

> I initially tried with * for the IP but when trying to start http got a
> "using * and non-* based virtual hosting not supported" error.

You must have some other <VirtualHost> sections.  You need to replace them
all with * or *:80.

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