Newbie help: virtual hosts to serve up multiple local domains won't work...[repost]
| From: | Nick | Date: | Wed, 16 Aug 2000 12:05:38 +0000 |
| Subject: | Newbie help: virtual hosts to serve up multiple local domains won't work...[repost] | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2086@lists.php.net to get a copy of this message | ||
> Hi,
>
> I posted this on the php genereal mailing list but i'll try here again, as my
> problem still isn't solved. Sorry if it's a bit off-topic- didn't quite know
> where to post & thought it might be of interest....
>
> Basically i'm trying to get apache to serve up the different PHP/mysql sites
> i've written to myself locally for debugging. I understand this is done via
> apache's virtua;l hosts; but when i try to envbale this httpd won't start. I've
> tried a couplke changes but to no avail...
>
> It's probably because i'm such a newbie I'm missing smthing quite obvious
> out, so in case that's the case i'm posting all the config
> files i know of in case there could be a mistake in one of them. If
> there's a config file i should have changed that's not in there, please
> let me know as i probably don't even know it exists.
>
> I did give the apache instructions quite a good read and followed the
> instructions as far as my understranding permitted, but it still doesn't
> work...... please help !!
>
> Nick
>
> /usr/local/apache/conf/httpd.conf file:
>
> >
> > Main Section:
> >
> > Listen 8081
> > Listen 8082
> > Listen 8083
> > Listen 8084
> > Listen 8085
> > Listen 8086
> >
> > BindAddress *
> >
> > ServerName badboy.carrierworld.com
> >
> > Virtual Hosts Section:
> >
> > NameVirtualHost 222.222.222.222:8081
> >
> > <VirtualHost 222.222.222.222:8081>
> > ServerAdmin webmaster@host.some_domain.com
> > DocumentRoot /home/carrierworld/old_site/htdocs
> > <Directory "/home/carrierworld/old_site/htdocs">
> > Options Indexes FollowSymLinks +Includes
> > AllowOverride None
> > </Directory>
> > ServerName badboy.carrierworld.com
> > ErrorLog logs/carrierworld_old-error_log
> > CustomLog logs/carrierworld_old-access_log common
> > </VirtualHost>
> > #<VirtualHost _default_:*>
> > #</VirtualHost>
> >
> > ****************************************
> > tested permutations (a.o.)
> >
> > commented/ uncommented NameVirtualHosts line
> > tried changing the port number from 8081 to 81; eg 222.222.222.222:80
> > instead of 222.222.222.222:8081
> > changed ServerName to 222.222.222 and to badboy (:p Kurt)
> >
> > ***************************************
> >
>
> >
> > /etc/hosts file
> > 127.0.0.1 localhost.localdomain localhost
> > 0.0.0.0 nick
> > 222.222.222.222 badboy.carrierworld.com badboy
> >
> > /etc/hosts.allow
> > #
> > # hosts.allow This file describes the names of the hosts which are
> > # allowed to use the local INET services, as decided
> > # by the '/usr/sbin/tcpd' server.
> > #
> > ALL: LOCAL
> >
> >
>
> > /etc/hosts.deny
> > #
> > # hosts.deny This file describes the names of the hosts which are
> > # *not* allowed to use the local INET services, as decided
> > # by the '/usr/sbin/tcpd' server.
> > #
> > # The portmap line is redundant, but it is left to remind you that
> > # the new secure portmap uses hosts.deny and hosts.allow. In particular
> >
> > # you should know that NFS uses portmap!
> > ALL: ALL
> >