From owner-freebsd-isp Sun Jun 10 5:57:45 2001 Delivered-To: freebsd-isp@freebsd.org Received: from beta.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id 1D68237B403 for ; Sun, 10 Jun 2001 05:57:39 -0700 (PDT) (envelope-from gabriel_ambuehl@buz.ch) Received: (qmail 96078 invoked from network); 10 Jun 2001 12:57:36 -0000 Received: from unknown (HELO athlon550) (62.2.106.17) by beta.root-servers.ch with SMTP; 10 Jun 2001 12:57:36 -0000 Date: Sun, 10 Jun 2001 14:57:33 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.52f) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <15679039733.20010610145733@buz.ch> To: freebsd-isp@freebsd.org Subject: mod_vhost_alias and domain.com/www.domain.com pointing to the same directory? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -----BEGIN PGP SIGNED MESSAGE----- Hello, reading the docs of mod_vhost_alias, it looks very much like it isn't possible to do something like this: /home/web/%-2_%-1/public_html/%-3+ [1] i.e. /home/web/[2ndleveld]_[tld]/public_html/[allsubdomainsuptothirdleveldo main] WHILE having www.domain.com still go to /home/web/domain_com/public_html (as any client would require it to be) since www would fall under the thirdlevel domain category and thus the request would get translated to: /home/web/domain_com/public_html/www I'm now asking myself whether I'm the only one with this need [3] or whether somebody else got a patch to modify mod_vhost_alias to shorten www.domain.com (and only that one!) to domain.com... I know this could also be achieved by doing $ ln -s /home/web/domain_com/public_html/ /home/web/domain_com/public_html/www but that's not the most elegant solution I can think of as I suppose users would want to see what's in there using FTP and afterwards complain about some broken directory structure (it is an endless loop of sorts...[2]) or so... Best regards, Gabriel [1] In the end, I want to have dynamically configured mass virtual hosting that supports dynamically configured subdomains. [2] And thus might even pose some security problem? [3] The fact, that mod_vhost_alias won't do any per virtual host logging isn't entirely to my taste either (although I can see some motivation behind it, with really MASS hosting, which we don't plan to do on that scale as servers aren't THAT expensive, you could run out of FDs) but I gave up the hope to find a fix to this very problem and I could fix that by using some offline log splitting technique. -----BEGIN PGP SIGNATURE----- Version: PGP 6.5i iQEVAwUBOyNgscZa2WpymlDxAQEltwf+MOJB4hCSni4tUjfkRWo0RSyuqUcVNMG4 h0xHQ6l5UHnj/aF2fmoQEh9b2B1L4sru0+HvroZXUAYys79yWFAgvDIzfenl/mnm DmTqi0ZnnbKkzDTPqP5sGHQdBwjhwOTUpaGKU1sU+x100fgYyahLlWcva5NenbEQ BdDxnE5o5Slxtr1w7Fgntu05B3M73Q5tk3OpiKlJ/7ohq6Pwvdso5vHqI7ZmJDX8 CB0r3ID0y6Ljvd8tn8r0Df9Pdpo4qsGbjQmdgLXyGj9sOzSrL9KWvihGmdkjR4XR w319WqcltM/mqDXreKgGG+N67Mys1VU1pNdLhaCB8MHIrnR15uMRpA== =iguo -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message