Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 69659 invoked from network); 10 Nov 2010 15:13:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 15:13:05 -0000 Received: (qmail 19398 invoked by uid 500); 10 Nov 2010 15:13:32 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 19350 invoked by uid 500); 10 Nov 2010 15:13:31 -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 19336 invoked by uid 99); 10 Nov 2010 15:13:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 15:13:31 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 24.201.245.36 is neither permitted nor denied by domain of francois.gingras@gmail.com) Received: from [24.201.245.36] (HELO relais.videotron.ca) (24.201.245.36) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 15:13:25 +0000 MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [192.168.3.18] ([69.70.151.138]) by VL-MR-MRZ20.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0LBO005N3CXK92E0@VL-MR-MRZ20.ip.videotron.ca> for users@httpd.apache.org; Wed, 10 Nov 2010 10:12:56 -0500 (EST) Message-id: <4CDAB674.8070907@gmail.com> Date: Wed, 10 Nov 2010 10:12:52 -0500 From: Frank Gingras User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 To: users@httpd.apache.org References: <7625A8059C7A7F4F958C4365349633B210709C@mail.Profindis.local> <7625A8059C7A7F4F958C4365349633B21070AE@mail.Profindis.local> In-reply-to: <7625A8059C7A7F4F958C4365349633B21070AE@mail.Profindis.local> Content-transfer-encoding: quoted-printable Subject: Re: AW: [users@httpd] Override main server conf On 10/11/2010 10:01 AM, Axel Gallus wrote: > My main server is configured with > > LoadModule php5_module modules/libphp5.so > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > DirectoryIndex index.html index.htm index.shtml index.php index.php3= index.cgi > AddHandler cgi-script .cgi > > Moreover I am allowed to use .htaccess in my webserver root: > > > AllowOverride All > Allow from All > > > > In my webserver-root I want *.php files executed via mod_cgi and not mo= d_php5 so I added this to my > .htaccess in the webserverroot: > > Options +ExecCGI > AddHandler cgi-script .cgi .php > > However I get an internal HTTP 500 Error when I try to execute *.php sc= ripts. > Maybe this is due to the fact, that the server doesn't know if the *.ph= p file > is to be executed via mod_php5 or mod_cgi. If I rename the *.php script= s to *.cgi they work. > Is there a way to let the *.php scripts execute via mod_cgi in my virtu= alhost/webserver-directory > and having the main-server config having all other virtual hosts config= ured via mod_php5? > > Regards > > A.Gallus > > > > > > > > > > > > > > > > > -----Urspr=FCngliche Nachricht----- > Von: Igor Cicimov [mailto:icicimov@gmail.com] > Gesendet: Mo 08.11.2010 07:15 > An: users@httpd.apache.org > Betreff: Re: [users@httpd] Override main server conf > > According to mod_mime documentation > > Context: server config, virtual host, directory, .htaccess > > "Files having the name extension will be served by the specified > handler-name. This mapping is added to any already in force, overriding= any > mappings that already exist for the same extension" > > so your config should be ok. Did you test if it doesn't work? Do the .c= gi > extension work for the host? Have you added > > Options +ExecCGI > > to make the files cgi executable for the appropriate directory in that > virtual host? > > Post the vhost config if still having problems. > > Igor > > On Mon, Nov 8, 2010 at 9:49 AM, Axel Galluswr= ote: > >> Hello, >> >> I use apache in a virtual host environment..... >> >> My main server is configured with >> >> LoadModule php5_module modules/libphp5.so >> AddType application/x-httpd-php .php >> AddType application/x-httpd-php-source .phps >> DirectoryIndex index.html index.htm index.shtml index.php index.php3 >> index.cgi >> AddHandler cgi-script .cgi >> >> so that only *.cgi files get executed via interpreter in my >> vhost-documentroot. >> >> I also want the *.php files to be executed as cgi, so I added >> AddHandler cgi-script .cgi .php >> to my perosnal vhost-config-section >> >> However, it seems that the main server config dominates the cgi-script= >> *.php config. >> Is there a way to also treat .php files as cgi scripts in my virtualho= st >> under >> this circumstances, how? >> >> Thx and regards >> >> A.Gallus >> >> >> >> >> >> >> > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Proje= ct. > 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 What does the error log say, exactly? Frank. --------------------------------------------------------------------- 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