Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 37674 invoked by uid 500); 22 Jul 2002 08:39:41 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 37661 invoked from network); 22 Jul 2002 08:39:40 -0000 Received: from ns0a.swx.com (146.109.240.107) by daedalus.apache.org with SMTP; 22 Jul 2002 08:39:40 -0000 Received: from gate0b.unix.swx.ch (gate0b [192.168.252.145]) by ns0a.swx.com (8.9.3+Sun/8.9.3) with ESMTP id KAA07543 for ; Mon, 22 Jul 2002 10:39:52 +0200 (MEST) Received: from SOMEXEVS001.ex.ordersx.org (localhost [127.0.0.1]) by gate0b.unix.swx.ch (8.9.3+Sun/8.9.3) with ESMTP id KAA08591 for ; Mon, 22 Jul 2002 10:39:51 +0200 (MEST) X-Authentication-Warning: gate0b.unix.swx.ch: iscan owned process doing -bs content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Install 2 apache in one server X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Mon, 22 Jul 2002 10:39:51 +0200 Message-ID: <14D1193E30E0894D8A773957C0AEE24AAA8BEC@SOMEXEVS001.ex.ordersx.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Install 2 apache in one server Thread-Index: AcIvPFmihLQfn4xfT+CQcBf/67l+PQCHG0nw From: "Boyle Owen" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Err... when I said "ip" I meant to use your actual IP address (i.e. = 213.186.37.72)... I don't really understand what you are trying to achieve. You are mixing = up port-based virtual-hosts, name-based virtual-hosts and multiple = instances of apache. Briefly: You can have name-based VHing (one IP, one port, one apache, only one = Listen, need NameVirtualHost): NameVirtualHost 213.186.37.72:80 Listen 213.186.37.72:80 ServerName www1 DocumentRoot /path/to/www1 ... ServerName www2 DocumentRoot /path/to/www2 ... etc... You can have port based VHing (one IP, many ports, one apache, many = Listens, no NameVirtualHost): Listen 213.186.37.72:80 ServerName www1 DocumentRoot /path/to/www1 ... Listen 213.186.37.72:8000 ServerName www2 DocumentRoot /path/to/www2 ... etc... You can have several apaches (one IP, one port per apache, one Listen = per apache, no NameVirtualHost, no VirtualHosts) httpd.conf1: Listen 213.186.37.72:80 ServerName www1 DocumentRoot /path/to/www1 httpd.conf2: Listen 213.186.37.72:8000 ServerName www2 DocumentRoot /path/to/www2 Each arrangement has its own advantages and disadvantages - which is = best for you depends on what you are trying to achieve. See other notes below: Rgds, Owen Boyle >-----Original Message----- >From: Pierre [mailto:pierre@gxist.com] >Sent: Freitag, 19. Juli 2002 17:53 >To: users@httpd.apache.org >Subject: RE: Install 2 apache in one server > > >hi,=20 >thanks Boyle for your response but that's don't work for yhe 2nd domain >execpt www.thedomain.com:3000=20 > >My 1st httpd.conf is : > >ServerType standalone >ServerRoot "/usr/local/apache" >#Listen 3000 >#Listen 12.34.56.78:80 >#BindAddress * >ExtendedStatus On >#Port 80 >User nobody >Group nobody >>>DocumentRoot "/usr/local/apache/htdocs" >>>ServerName myserv You don't need "ServerName" or "DocumentRoot" here because you are using = virtualhosts. It is good practice to put all VH directives inside a VH. >UseCanonicalName On >HostnameLookups on > >NameVirtualHost 213.186.37.72:80 > >Listen 80 > >ServerAdmin tech@ovh.net >DocumentRoot /home/rep/www >User user >Group group >ServerName myserv >UserDir disabled > > >and the 2nd is : > >ServerType standalone >ServerRoot "/home/rep/www" It is a bit odd to have the ServerRoot the same as the DocumentRoot. The = SR is where the conf, logs and bin directories are found, the DR is = where the files are served from. If DR=3DSR, then = http://your-server/logs/access_log puts your log file on the server and = http://your-server/conf/httpd.conf put up your config file.. Is this = what you want? >#Listen 3000 >#Listen 213.186.37.72:3000 >#BindAddress * >#ExtendedStatus On >#Port 80 >User user2 >Group group2 >ServerName myserv2 >UseCanonicalName On >HostnameLookups Off > >NameVirtualHost ip:3000 > >Listen 3000 > >DocumentRoot /home/rep2/www >ServerName domain2.com >ServerAlias www.domain2.com >UserDir disabled > > >Is there a misteak ? ;) > >Thanks,=20 > >Pierre=20 > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org