Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 83760 invoked from network); 5 Mar 2007 16:47:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 16:47:35 -0000 Received: (qmail 19346 invoked by uid 500); 5 Mar 2007 16:47:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 19335 invoked by uid 500); 5 Mar 2007 16:47:33 -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 19324 invoked by uid 99); 5 Mar 2007 16:47:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 08:47:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnturner@gmail.com designates 64.233.162.234 as permitted sender) Received: from [64.233.162.234] (HELO nz-out-0506.google.com) (64.233.162.234) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 08:47:22 -0800 Received: by nz-out-0506.google.com with SMTP id x7so1618827nzc for ; Mon, 05 Mar 2007 08:47:01 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AM+OBGjPAwG4C9XeBtAiQ0cL+PWnVeXMtxqNw2W/PfC7gEu/gF+2Fsld7R2ryk7d8+63gn6o++mu44Huhu03Tt17we+2EFpTeGoDydTkhrV++8S4JbfK0hmYtCbmf5/w8ojHozDepRboWSvDMUJUdZMW350ewarQg9So1NOAWrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EUTKkJOrtiEtZvAytDYNC6JSYXyKBO0F6NFYlIPGAaaVfHDgJSusQSnfDaP6z6ofs31en9bGC0WTaAJtXM5jepZGG4cV+X6Ki0fylNMcoKmfE15eKcMIZa0clFNJhbMxDaE1cMnJdLXciplEnOgAdsJ1K7WkZ6oOUT3LIER8irc= Received: by 10.64.249.18 with SMTP id w18mr10108165qbh.1173113214922; Mon, 05 Mar 2007 08:46:54 -0800 (PST) Received: by 10.64.196.14 with HTTP; Mon, 5 Mar 2007 08:46:54 -0800 (PST) Message-ID: <2b99a660703050846x15131034m95a7a2596adc8dc6@mail.gmail.com> Date: Mon, 5 Mar 2007 11:46:54 -0500 From: "John Turner" To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] DocumentRoot and UserDir conflict? Hello - I'm using Apache 2.0.47. Due to site admin policies, I have limited control of Apache's configuration, but am allowed to supplement/override global config statements with the use of an Include in httpd.conf. I have a lot of Apache experience, but it is mostly virtual hosting and mod_jk configuration on systems where I have total control. I've read the documentation for DocumentRoot and UserDir, and have spent the morning googling, but haven't found any previous discussions about my specific issue, so I'm hoping folks here can help. Goal: enable per-user directories so that developers can test code in their own environments before pushing to a QA server. This means HTML as well as perl CGI in a conventional cgi-bin setup. So far, I've got mod_userdir enabled, and the following directives configured: UserDir disabled UserDir /thishost/u/*/public_html UserDir enabled john AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all Order deny,allow Deny from all Options ExecCGI SetHandler cgi-script My problem: When I try to browse to http://devhost/~john, Apache is not looking in /thishost/u/~john/public_html as expected. Instead, it is looking in /proj/site/www/~john, as shown by the error log: [Mon Mar 05 16:09:06 2007] [error] [client 1.2.3.4] File does not exist: /proj/site/www/~john "/proj/site/www" is the document root for the entire server. I don't have permission to change this, nor can I get it changed by asking. How can I override the global config or otherwise "persuade" Apache to look in "/thishost/u/~john" instead of "/proj/site/www/~john"? There's no mention in the UserDir documentation that the UserDir has to be a subdirectory of DocumentRoot, so it looks like I'm missing something. I've tried various combinations of "disable" and "enable" with the UserDir directive, and have also tried various position combinations with the three UserDir directives shown above, such as putting "disable" first, then the path, or the path first, then "disable" second, etc. No combination that I've tried gets me the ability to serve pages and CGI out of my homedir. Any and all help is appreciated...thank you in advance! John --------------------------------------------------------------------- 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