Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 84679 invoked from network); 29 Apr 2007 12:04:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2007 12:04:41 -0000 Received: (qmail 21933 invoked by uid 500); 29 Apr 2007 12:04:34 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 21914 invoked by uid 500); 29 Apr 2007 12:04:34 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 21903 invoked by uid 99); 29 Apr 2007 12:04:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Apr 2007 05:04:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [62.193.235.13] (HELO otamate.com) (62.193.235.13) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Apr 2007 05:04:27 -0700 Received: (qmail 5939 invoked by uid 111); 29 Apr 2007 12:04:04 -0000 Received: from 80.192.241.252 by otamate.com (envelope-from , uid 2020) with qmail-scanner-2.01st (spamassassin: 3.0.2. perlscan: 2.01st. Clear:RC:1(80.192.241.252):. Processed in 0.025207 secs); 29 Apr 2007 12:04:04 -0000 Received: from 80-192-241-252.cable.ubr03.pres.blueyonder.co.uk (HELO ?192.168.62.200?) (80.192.241.252) by master.otamate.com with SMTP; 29 Apr 2007 12:04:04 -0000 Message-ID: <463489B0.4030603@phonewebcam.com> Date: Sun, 29 Apr 2007 13:04:00 +0100 From: John Steel Organization: www.phonewebcam.com User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Setting up a staging server with apache I'm new to PHP but not J2EE. In J2EE you can set the container to resolve separate apps based off their hostname as long as you set them up as web-apps in the config. So for example, you can on a single PC visit http://localhost:8080/www.example1.com and http://localhost:8080/www.example2.com. What you are really doing is just qualifying 1 host having multiple web-apps. Its useful because you can expose this PC to the web as a staging server, and outside users can see them by using URL's like http://staging.example.com:8080/www.example1.com and http://staging.example.com:8080/www.example2.com. This is all handled entirely by the J2EE server. When you want to populate production machines you copy the staging content to live, where the real URL is mapped appropriately. I am trying to reproduce this setup for PHP development which will manage separate hosts running separate apps (Drupal, MediaWiki, etc). If I try to use Apache VirtualHosts I get stuck - I know I could set up www.example1.com and www.example2.com as separate entries but that means messing externally with with the IP addresses/hostnames. Is this possible with a rewrite rule? I.e., if you see http://localhost:8010/{$hostname} you really mean ServerName={$hostname} in httpd.conf? Any smarter solutions very welcome, thanks. -- -------------------------- http://www.phonewebcam.com john.steel@phonewebcam.com --------------------------------------------------------------------- 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