Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 49812 invoked from network); 5 Feb 2005 12:10:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Feb 2005 12:10:11 -0000 Received: (qmail 49095 invoked by uid 500); 5 Feb 2005 12:10:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 49074 invoked by uid 500); 5 Feb 2005 12:10:01 -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 49059 invoked by uid 99); 5 Feb 2005 12:10:01 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dndfreaks.xs4all.nl (HELO mail.nperfection.com) (80.126.245.108) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 05 Feb 2005 04:09:58 -0800 Received: from xp2600c.linuxnet.nl (xp2600c.linuxnet.nl [10.4.8.27]) by mail.nperfection.com (Postfix) with ESMTP id A4D2A32E698 for ; Sat, 5 Feb 2005 12:09:55 +0000 (UTC) From: Mark Hannessen To: users@httpd.apache.org Date: Sat, 5 Feb 2005 13:09:54 +0100 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502051309.54980.mark@nperfection.com> X-Virus-Checked: Checked Subject: [users@httpd] apache reverse proxy X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi. I have currently have the following situation. we have two servers running there own website. for various reasons we want both websites not to be hosted on the same pc. server 1 runs the domain nperfection.com server 2 runs the domain aojclan.com both domains run on there own ipv6 ip. but on the internet however, many people can't access ipv6 yet. so I thought it would be nice to create a apache proxy running on my ipv4 internet adress to make these domains availible to the ipv4 internet as well. with the of an article I found on slashdot I wrote the following config file. Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 LoadModule php5_module lib/apache2/libphp5.so StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 CacheEnable mem / MCacheSize 4096 MCacheMaxObjectCount 100 MCacheMinObjectSize 1 MCacheMaxObjectSize 2048 Listen 10.4.8.1:80 User apache Group apache PidFile var/www/logs/httpd.pid HostnameLookups Off ServerTokens Full ServerSignature On ServerAdmin mark@nperfection.com ServerName www.nperfection.com ServerAlias *.nperfection.com ProxyRequests Off Order deny,allow Allow from all ProxyPass / http://nperfection.com/ ProxyPassReverse / http://nperfection.com/ ProxyPreserveHost On this config works fine for one domain. it correctly forwards the nperfection domain. I however failed in writing a config file that will let apache proxy both domains. I tried adding the following. ServerAdmin mark@aojclan.com ServerName www.aojclan.com ServerAlias *.aojclan.com ProxyRequests Off Order deny,allow Allow from all ProxyPass / http://aojclan.com/ ProxyPassReverse / http://aojclan.com/ ProxyPreserveHost On but that ends up with the following warning when I try to start apache. [Sat Feb 05 12:03:49 2005] [warn] _default_ VirtualHost overlap on port 80, the first has precedence does anyone know if it is possible to do this? thanks, Mark Hannessen --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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