From owner-apache@oss.sgi.com Fri May 12 02:54:30 2000 Received: by oss.sgi.com id ; Fri, 12 May 2000 09:54:21 +0000 Received: from rmx602-mta.mail.com ([165.251.48.51]:59273 "EHLO rmx602-mta.mail.com") by oss.sgi.com with ESMTP id ; Fri, 12 May 2000 09:54:07 +0000 Received: from web312-mc.mail.com (web312-mc.mail.com [165.251.48.170]) by rmx602-mta.mail.com (8.9.3/8.9.3) with SMTP id FAA14816 for ; Fri, 12 May 2000 05:54:02 -0400 (EDT) Message-ID: <384412241.958125242973.JavaMail.root@web312-mc.mail.com> Date: Fri, 12 May 2000 05:54:02 -0400 (EDT) From: johny jugianto To: apache@oss.sgi.com Subject: question Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: mail.com X-Originating-IP: 202.137.2.146 Sender: owner-apache@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;apache-outgoing How to make redirect in apache ? When apache (httpd) is called from the browser, it's read index.html. How can i make it read my script or another file ? Thank You ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup From owner-apache@oss.sgi.com Fri May 12 15:20:52 2000 Received: by oss.sgi.com id ; Fri, 12 May 2000 22:20:33 +0000 Received: from smtp11.bellglobal.com ([204.101.251.53]:33986 "EHLO smtp11.bellglobal.com") by oss.sgi.com with ESMTP id ; Fri, 12 May 2000 22:20:05 +0000 Received: from sympatico.ca (HSE-Toronto-ppp134145.sympatico.ca [64.228.81.184]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id SAA00411 for ; Fri, 12 May 2000 18:26:09 -0400 (EDT) Message-ID: <391C847A.C5748192@sympatico.ca> Date: Fri, 12 May 2000 18:23:54 -0400 From: Luke Reeves Organization: Neurotech X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: apache@oss.sgi.com Subject: Re: question References: <384412241.958125242973.JavaMail.root@web312-mc.mail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-apache@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;apache-outgoing John, just change the line in your Apache configuration file that reads: DirectoryIndex index.html index.htm And just tack on whatever filename you want to be the default. Later. Luke Reeves, Neurotech luke@submail.NOSPAM.net http://www.submail.net/ http://www.neuro-tech.net/ johny jugianto wrote: > How to make redirect in apache ? > When apache (httpd) is called from the browser, it's read index.html. > How can i make it read my script or another file ? > Thank You From owner-apache@oss.sgi.com Wed May 17 03:04:04 2000 Received: by oss.sgi.com id ; Wed, 17 May 2000 10:03:45 +0000 Received: from indyio.rz.uni-sb.de ([134.96.7.3]:24126 "EHLO indyio.rz.uni-sb.de") by oss.sgi.com with ESMTP id ; Wed, 17 May 2000 10:03:16 +0000 Received: from mars.rz.uni-sb.de (ns0.rz.uni-sb.de [134.96.7.5]) by indyio.rz.uni-sb.de (8.9.3/8.9.3) with ESMTP id MAA29718; Wed, 17 May 2000 12:03:13 +0200 (CST) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.254.254]) by mars.rz.uni-sb.de (8.8.8/8.8.4/8.8.2) with ESMTP id MAA03768; Wed, 17 May 2000 12:03:12 +0200 (CST) Received: from wjpserver.cs.uni-sb.de (wjpserver.cs.uni-sb.de [134.96.247.42]) by cs.uni-sb.de (8.10.1/2000040900) with ESMTP id MAA13195; Wed, 17 May 2000 12:01:55 +0200 (CEST) Received: from wurzelausix.CS.Uni-SB.DE (wurzelausix [134.96.247.1]) by wjpserver.cs.uni-sb.de (8.9.3/8.9.3/wjp-SVR4/1999052600) with ESMTP id MAA25216; Wed, 17 May 2000 12:01:55 +0200 (MET DST) Received: by wurzelausix.CS.Uni-SB.DE with ESMTP; Wed, 17 May 2000 12:01:52 +0200 (CEST) Message-Id: <200005171001.MAA07178@wurzelausix.CS.Uni-SB.DE> Date: Wed, 17 May 2000 12:01:50 +0200 (CEST) From: Alexander Leidinger Subject: Patches & FreeBSD To: apache@oss.sgi.com cc: gruen@engr.sc.edu MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-apache@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;apache-outgoing Hi Robert, hi SGI-Apache list, I'm browsing the archives of the SGI Apache mailinglist and found the question about the patches and FreeBSD. Yes, these patches can be applied to "Apache for FreeBSD" (I've tried only 10xpatch-1.3.12-0 a while ago). It's the same Apache as for every other OS. If you build Apache from the FreeBSD ports collection cd into the apropriate(sp?) directory and type "make patch" to apply a few FreeBSD patches (non FreeBSD users interested in the patches should look into http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/www/, just click at the apache port you are interested in and have a look into the patches subdir). After this cd into the "work" directory and apply the patches from SGI (as described by SGI), cd back into the main Apache port directory and continue with the make process. The qsc_cas function needs only porting if you decide to use qsc (compile it) AND you are using FreeBSD-alpha, qsc and FreeBSD-x86 works (read: compiles and didn't seqfault if you are not using the qsc functionality. I haven't tested qsc, but I would be surprised if it didn't work). Bye, Alexander. P.S.: mja: I'm the one who send in a patch for "#ifdef LINUX" -> "#ifdef x86" (paraphrased) in the qsc_cas code (10xpatch-1.3.9?). I thought I've noted the fact I compiled it with FreeBSD, but I don't remember if I really sayd it. -- Actually, a more important date is January 1, 2000, when many computer programs across the world could break. Richard W. Stevens, Advanced Programming in the UNIX Environment, _1993_ http://www.Leidinger.net A.Leidinger @ WJPServer.CS.Uni-SB.de From owner-apache@oss.sgi.com Wed May 17 09:29:47 2000 Received: by oss.sgi.com id ; Wed, 17 May 2000 16:29:38 +0000 Received: from mout0.freenet.de ([194.97.50.131]:53515 "EHLO mout0.freenet.de") by oss.sgi.com with ESMTP id ; Wed, 17 May 2000 16:29:21 +0000 Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout0.freenet.de with esmtp (Exim 3.14 #3) id 12s6hC-0001Sk-00 for apache@oss.sgi.com; Wed, 17 May 2000 18:29:18 +0200 Received: from [213.6.59.88] (helo=Magelan.Leidinger.net) by mx3.freenet.de with esmtp (Exim 3.14 #3) id 12s6hC-0005uL-00 for apache@oss.sgi.com; Wed, 17 May 2000 18:29:18 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.9.3/8.9.3) with ESMTP id SAA85443 for ; Wed, 17 May 2000 18:25:42 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200005171625.SAA85443@Magelan.Leidinger.net> Date: Wed, 17 May 2000 18:25:41 +0200 (CEST) From: Alexander Leidinger Subject: 10xpatch & FreeBSD To: apache@oss.sgi.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-apache@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;apache-outgoing Hi, I tried again to use 10xpatch-1.3.12-[0-2] with the FreeBSD port (as described in my last mail). I had to add "|| defined(__i386__)" into the conditional in src/main/qsc.c at line 185 (the conditional just before the qsc_cas function): --- qsc.c.org Wed May 17 17:46:43 2000 +++ qsc.c Wed May 17 17:47:40 2000 @@ -182,8 +182,8 @@ # define qsc_cas(p, oldval, newval) __compare_and_swap(p, oldval, newval) # endif #elif defined(__GNUC__) && __GNUC__ >= 2 && \ - (defined(__i486__) || defined(__i586__) || defined(__i686__) || \ - defined(__pentium__) || defined(__pentiumpro__)) + (defined(__i386__) || defined(__i486__) || defined(__i586__) || \ + defined(__i686__) || defined(__pentium__) || defined(__pentiumpro__)) /* * Use asm statement copied from Linux libpthread's __compare_and_swap(). */ To enable the QSC, add "-DUSE_QSC" to the CFLAGS line in the generated Makefile.inc in the ports directory. Bye, Alexander. -- 0 and 1. Now what could be so hard about that? http://www.Leidinger.net Alexander+Home @ Leidinger.net GPG fingerprint = 7423 F3E6 3A7E B334 A9CC B10A 1F5F 130A A638 6E7E From owner-apache@oss.sgi.com Wed May 17 22:21:26 2000 Received: by oss.sgi.com id ; Thu, 18 May 2000 05:21:06 +0000 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:3867 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 18 May 2000 05:20:40 +0000 Received: from trudge.engr.sgi.com (trudge.engr.sgi.com [163.154.38.51]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id WAA06731 for ; Wed, 17 May 2000 22:25:10 -0700 (PDT) mail_from (mja@trudge.engr.sgi.com) Received: (from mja@localhost) by trudge.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id WAA71408; Wed, 17 May 2000 22:19:26 -0700 (PDT) From: mja@trudge.engr.sgi.com (Mike Abbott) Message-Id: <200005180519.WAA71408@trudge.engr.sgi.com> Subject: Re: 10xpatch & FreeBSD To: Alexander@Leidinger.net (Alexander Leidinger) Date: Wed, 17 May 2000 22:19:26 -0700 (PDT) Cc: apache@oss.sgi.com In-Reply-To: <200005171625.SAA85443@Magelan.Leidinger.net> from "Alexander Leidinger" at May 17, 2000 06:25:41 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-apache@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;apache-outgoing > I had to add "|| defined(__i386__)" into the > conditional in src/main/qsc.c at line 185 (the conditional just before > the qsc_cas function): This is incorrect. The cmpxchg instruction exists only on i486 and later processors. Using this instruction on an i386 will cause an illegal instruction trap. Perhaps you need to define __i486__ or __i586__ or __i686__ etc. during your build. I did, on Linux. -- Michael J. Abbott mja@sgi.com http://reality.sgi.com/mja/ From owner-apache@oss.sgi.com Thu May 18 07:46:42 2000 Received: by oss.sgi.com id ; Thu, 18 May 2000 14:46:32 +0000 Received: from mout0.freenet.de ([194.97.50.131]:5637 "EHLO mout0.freenet.de") by oss.sgi.com with ESMTP id ; Thu, 18 May 2000 14:46:20 +0000 Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout0.freenet.de with esmtp (Exim 3.14 #3) id 12sRZ4-0005P8-00; Thu, 18 May 2000 16:46:18 +0200 Received: from [213.6.42.25] (helo=Magelan.Leidinger.net) by mx3.freenet.de with esmtp (Exim 3.14 #3) id 12sRZ3-0001bk-00; Thu, 18 May 2000 16:46:17 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.9.3/8.9.3) with ESMTP id PAA04272; Thu, 18 May 2000 15:45:41 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200005181345.PAA04272@Magelan.Leidinger.net> Date: Thu, 18 May 2000 15:45:40 +0200 (CEST) From: Alexander Leidinger Subject: Re: 10xpatch & FreeBSD To: mja@trudge.engr.sgi.com cc: apache@oss.sgi.com In-Reply-To: <200005180519.WAA71408@trudge.engr.sgi.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-apache@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;apache-outgoing On 17 May, Mike Abbott wrote: >> I had to add "|| defined(__i386__)" into the >> conditional in src/main/qsc.c at line 185 (the conditional just before >> the qsc_cas function): > > This is incorrect. The cmpxchg instruction exists only on i486 and > later processors. Using this instruction on an i386 will cause an > illegal instruction trap. Perhaps you need to define __i486__ or > __i586__ or __i686__ etc. during your build. I did, on Linux. It seems gcc has a bug regarding the definition of those defines. A litte test program: ---snip--(t.c)- #include int main(void) { #ifdef __i386__ printf("i386: %d\n", __i386__); #endif #ifdef __i486__ printf("i486: %d\n", __i486__); #endif #ifdef __i586__ printf("i586: %d\n", __i586__); #endif #ifdef __i686__ printf("i686: %d\n", __i686__); #endif #ifdef __pentium__ printf("pentium: %d\n", __pentium__); #endif #ifdef __pentiumpro__ printf("pentiumpro: %d\n" __pentiumpro__); #endif } ---snip--- The tests (the first CFLAGS setting is a subset of the CFLAGS setting I've used to compile apache+10xpatch): ---snip--- (23) netchild@ttyp1% CFLAGS=-march=pentiumpro gmake t cc -march=pentiumpro t.c -o t (24) netchild@ttyp1% ./t i386: 1 (27) netchild@ttyp1% CFLAGS=-m486 gmake t cc -m486 t.c -o t (28) netchild@ttyp1% ./t i386: 1 i486: 1 (31) netchild@ttyp1% CFLAGS=-mpentium gmake t cc -mpentium t.c -o t (32) netchild@ttyp1% ./t i386: 1 i586: 1 pentium: 1 (34) netchild@ttyp1% CFLAGS=-march=pentium gmake t cc -march=pentium t.c -o t (35) netchild@ttyp1% ./t i386: 1 >From the info page of gcc (order rearranged to explain the above tests): ---snip--- `-march=CPU TYPE' Generate instructions for the machine type CPU TYPE. The choices for CPU TYPE are the same as for `-mcpu'. Moreover, specifying `-march=CPU TYPE' implies `-mcpu=CPU TYPE'. `-m386' `-m486' `-mpentium' `-mpentiumpro' Synonyms for -mcpu=i386, -mcpu=i486, -mcpu=pentium, and -mcpu=pentiumpro respectively. These synonyms are deprecated. `-mcpu=CPU TYPE' Assume the defaults for the machine type CPU TYPE when scheduling instructions. The choices for CPU TYPE are: `i386' `i486' `i586' `i686' `pentium' `pentiumpro' `k6' While picking a specific CPU TYPE will schedule things appropriately for that particular chip, the compiler will not generate any code that does not run on the i386 without the `-march=CPU TYPE' option being used. `i586' is equivalent to `pentium' and `i686' is equivalent to `pentiumpro'. `k6' is the AMD chip as opposed to the Intel ones. ---snip--- It seems the conditional upon which the i386 qsc_cas function is build isn't a good solution because gcc (2.95.2 19991024) seems to have bugs regarding the definition of the i?86 defines. IMHO it isn't good practice to define a __i?86__ define by myself, they are reserved defines of the compiler, so I propose the following patches: ---snip--- --- qsc.c.org Thu May 18 15:22:35 2000 +++ qsc.c Thu May 18 15:23:25 2000 @@ -181,9 +181,7 @@ */ # define qsc_cas(p, oldval, newval) __compare_and_swap(p, oldval, newval) # endif -#elif defined(__GNUC__) && __GNUC__ >= 2 && \ - (defined(__i486__) || defined(__i586__) || defined(__i686__) || \ - defined(__pentium__) || defined(__pentiumpro__)) +#elif defined(__GNUC__) && __GNUC__ >= 2 && defined(QSC_IA32_CAS) /* * Use asm statement copied from Linux libpthread's __compare_and_swap(). */ ---snip--- ---snip--- --- qsc.html.org Thu May 18 15:24:30 2000 +++ qsc.html Thu May 18 15:33:43 2000 @@ -142,6 +142,12 @@ $ make

+On x86 processors (x >= 4) you have to use:

+
+  $ CFLAGS="-DUSE_QSC -DQSC_IA32_CAS" configure --enable-module=mmap_static
+  $ make
+
+

(The QSC is an enhancement to core Apache, while mmap_static is an Apache module.) There are also advanced options to controlling QSC behavior, described below.

@@ -600,7 +606,7 @@

Advanced Options

-All of the following are compile-time options. The first two must be +All of the following are compile-time options. The first 3 must be defined manually. The rest are defined in the QSC source code.

@@ -610,6 +616,14 @@ Default: USE_QSC is not defined so the QSC is disabled. + +
QSC_IA32_CAS

+ Needed on the ia32 architecture (x86 processors, x >= 4) + for an atomic compare and swap function.

+ Default: QSC_UA32_CAS is not defined so you + get an error on x86 processors. Unfortunally a bug in + gcc disables the possibility to detect the processor type + at compile time.

Debugging / Additional Information

---snip--- > -- ^ It seems you have forgotten to add a space after the two dashes. > Michael J. Abbott mja@sgi.com http://reality.sgi.com/mja/ Bye, Alexander. -- The dark ages were caused by the Y1K problem. http://www.Leidinger.net Alexander+Home @ Leidinger.net GPG fingerprint = 7423 F3E6 3A7E B334 A9CC B10A 1F5F 130A A638 6E7E