Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15473 invoked by uid 500); 14 May 2003 11:16:38 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 15424 invoked from network); 14 May 2003 11:16:36 -0000 Received: from saturn.bt.com (HELO cbibipnt05.hc.bt.com) (193.113.57.20) by daedalus.apache.org with SMTP; 14 May 2003 11:16:36 -0000 Received: by cbibipnt05.hc.bt.com with Internet Mail Service (5.5.2654.89) id ; Wed, 14 May 2003 12:16:44 +0100 Message-ID: <1A2FC9ACA890554B8F7E3B8D7A3C253502DD0D44@i2km03-ukbr.domain1.systemhost.net> From: rui.wang@bt.com To: users@httpd.apache.org Cc: Owen.Boyle@swx.com Date: Wed, 14 May 2003 12:16:25 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.89) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C31A0A.420D1D75" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] How to use another folder as CGI folder? ------_=_NextPart_000_01C31A0A.420D1D75 Content-Type: text/plain; charset="iso-8859-1" Hi Owen, As you said, I deleted the line 'AllowOverride All' from httpd.conf, then try to execute the cgi script again. I use the following address as my URL: http://132.146.65.5/my-cgi-bin/lbone_list_view.cgi (132.146.65.5 is my IP) The error pops up as: 403 Forbidden First I thought it is the problem to do with chmod, So I gave the execute privilege to the file, even to the folder which stores the file. But it still does not working. Do you have any ideas about this? I have attached my httpf.conf with this email; please have a look for me. Thank you very much. Best Regards Rui -----Original Message----- From: Boyle Owen [mailto:Owen.Boyle@swx.com] Sent: 14 May 2003 11:52 To: users@httpd.apache.org Subject: RE: [users@httpd] How to use another folder as CGI folder? >-----Original Message----- >From: rui.wang@bt.com [mailto:rui.wang@bt.com] > > I have already configured httpd.conf properly as follow: > ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/" > And I have tested the test-cgi, which is in this >folder, the output >is correct. > But my question is : > How can I display CGI script from different folder, for >example, I >got several CGI scripts which is stored in > /home/harry/lbone-0.8.4/cgi/src > What should I do? Configure the httpd.conf, but I >have added the >following lines into httpd.conf: > > ScriptAlias /my-cgi-bin/ "/home/harry/lbone-0.8.4/cgi/src/" This is correct. You should now be able to execute CGI progs with the URL: http://server-name/my-cgi-bin/program-name Is this the form of URL you were using? > > > Options All This is OK, but the important Option is "ExecCGI". > AllowOverride All You don't need this unless you have a .htaccess file in this directory. Do you? It would be a bit odd if you did... > Order allow,deny > Allow from all > > > AddHandler cgi-script .cgi pl You don't need this if you are using ScriptAlias to define a CGI dir. However, it doesn't do any harm. > > Unfortunately, it still doesn't work. What does "doesn't work" mean? There are lots of ways a CGI request can fail... Does it: - 500 Internal Server Error - 401 Unauthorized - 403 Forbidden - 404 Not found - list the source code - prompt you for a download - make your computer explode - something else.... while you're at it, what does it say in the error_log... Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > Any ideas? >please help me , >I was blocked by this problem for two days. > Thanks a lot! > >Rui > >--------------------------------------------------------------------- >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 > > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- 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 ------_=_NextPart_000_01C31A0A.420D1D75 Content-Type: application/octet-stream; name="httpd.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="httpd.conf" #=0A= # Based upon the NCSA server configuration files originally by Rob = McCool.=0A= #=0A= # This is the main Apache server configuration file. It contains = the=0A= # configuration directives that give the server its instructions.=0A= # See for detailed information = about=0A= # the directives.=0A= #=0A= # Do NOT simply read the instructions in here without understanding=0A= # what they do. They're here only as hints or reminders. If you are = unsure=0A= # consult the online docs. You have been warned. =0A= #=0A= # The configuration directives are grouped into three basic = sections:=0A= # 1. Directives that control the operation of the Apache server = process as a=0A= # whole (the 'global environment').=0A= # 2. Directives that define the parameters of the 'main' or 'default' = server,=0A= # which responds to requests that aren't handled by a virtual = host.=0A= # These directives also provide default values for the settings=0A= # of all virtual hosts.=0A= # 3. Settings for virtual hosts, which allow Web requests to be sent = to=0A= # different IP addresses or hostnames and have them handled by = the=0A= # same Apache server process.=0A= #=0A= # Configuration and logfile names: If the filenames you specify for = many=0A= # of the server's control files begin with "/" (or "drive:/" for = Win32), the=0A= # server will use that explicit path. If the filenames do *not* = begin=0A= # with "/", the value of ServerRoot is prepended -- so = "logs/foo.log"=0A= # with ServerRoot set to "/usr/local/apache2" will be interpreted by = the=0A= # server as "/usr/local/apache2/logs/foo.log".=0A= #=0A= =0A= ### Section 1: Global Environment=0A= #=0A= # The directives in this section affect the overall operation of = Apache,=0A= # such as the number of concurrent requests it can handle or where = it=0A= # can find its configuration files.=0A= #=0A= =0A= #=0A= # ServerRoot: The top of the directory tree under which the server's=0A= # configuration, error, and log files are kept.=0A= #=0A= # NOTE! If you intend to place this on an NFS (or otherwise = network)=0A= # mounted filesystem then please read the LockFile documentation = (available=0A= # at = );=0A= # you will save yourself a lot of trouble.=0A= #=0A= # Do NOT add a slash at the end of the directory path.=0A= #=0A= ServerRoot "/usr/local/apache2"=0A= =0A= #=0A= # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.=0A= #=0A= =0A= =0A= #LockFile logs/accept.lock=0A= =0A= =0A= =0A= #=0A= # ScoreBoardFile: File used to store internal server process = information.=0A= # If unspecified (the default), the scoreboard will be stored in an=0A= # anonymous shared memory segment, and will be unavailable to = third-party=0A= # applications.=0A= # If specified, ensure that no two invocations of Apache share the = same=0A= # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL = DISK.=0A= #=0A= =0A= =0A= #ScoreBoardFile logs/apache_runtime_status=0A= =0A= =0A= =0A= =0A= #=0A= # PidFile: The file in which the server should record its process=0A= # identification number when it starts.=0A= #=0A= =0A= PidFile logs/httpd.pid=0A= =0A= =0A= #=0A= # Timeout: The number of seconds before receives and sends time out.=0A= #=0A= Timeout 300=0A= =0A= #=0A= # KeepAlive: Whether or not to allow persistent connections (more = than=0A= # one request per connection). Set to "Off" to deactivate.=0A= #=0A= KeepAlive On=0A= =0A= #=0A= # MaxKeepAliveRequests: The maximum number of requests to allow=0A= # during a persistent connection. Set to 0 to allow an unlimited = amount.=0A= # We recommend you leave this number high, for maximum performance.=0A= #=0A= MaxKeepAliveRequests 100=0A= =0A= #=0A= # KeepAliveTimeout: Number of seconds to wait for the next request from = the=0A= # same client on the same connection.=0A= #=0A= KeepAliveTimeout 15=0A= =0A= ##=0A= ## Server-Pool Size Regulation (MPM specific)=0A= ## =0A= =0A= # prefork MPM=0A= # StartServers: number of server processes to start=0A= # MinSpareServers: minimum number of server processes which are kept = spare=0A= # MaxSpareServers: maximum number of server processes which are kept = spare=0A= # MaxClients: maximum number of server processes allowed to start=0A= # MaxRequestsPerChild: maximum number of requests a server process = serves=0A= =0A= StartServers 5=0A= MinSpareServers 5=0A= MaxSpareServers 10=0A= MaxClients 150=0A= MaxRequestsPerChild 0=0A= =0A= =0A= # worker MPM=0A= # StartServers: initial number of server processes to start=0A= # MaxClients: maximum number of simultaneous client connections=0A= # MinSpareThreads: minimum number of worker threads which are kept = spare=0A= # MaxSpareThreads: maximum number of worker threads which are kept = spare=0A= # ThreadsPerChild: constant number of worker threads in each server = process=0A= # MaxRequestsPerChild: maximum number of requests a server process = serves=0A= =0A= StartServers 2=0A= MaxClients 150=0A= MinSpareThreads 25=0A= MaxSpareThreads 75 =0A= ThreadsPerChild 25=0A= MaxRequestsPerChild 0=0A= =0A= =0A= # perchild MPM=0A= # NumServers: constant number of server processes=0A= # StartThreads: initial number of worker threads in each server = process=0A= # MinSpareThreads: minimum number of worker threads which are kept = spare=0A= # MaxSpareThreads: maximum number of worker threads which are kept = spare=0A= # MaxThreadsPerChild: maximum number of worker threads in each server = process=0A= # MaxRequestsPerChild: maximum number of connections per server = process=0A= =0A= NumServers 5=0A= StartThreads 5=0A= MinSpareThreads 5=0A= MaxSpareThreads 10=0A= MaxThreadsPerChild 20=0A= MaxRequestsPerChild 0=0A= =0A= =0A= # WinNT MPM=0A= # ThreadsPerChild: constant number of worker threads in the server = process=0A= # MaxRequestsPerChild: maximum number of requests a server process = serves=0A= =0A= ThreadsPerChild 250=0A= MaxRequestsPerChild 0=0A= =0A= =0A= # BeOS MPM=0A= # StartThreads: how many threads do we initially spawn?=0A= # MaxClients: max number of threads we can have (1 thread =3D=3D 1 = client)=0A= # MaxRequestsPerThread: maximum number of requests each thread will = process=0A= =0A= StartThreads 10=0A= MaxClients 50=0A= MaxRequestsPerThread 10000=0A= =0A= =0A= # NetWare MPM=0A= # ThreadStackSize: Stack size allocated for each worker thread=0A= # StartThreads: Number of worker threads launched at server startup=0A= # MinSpareThreads: Minimum number of idle threads, to handle request = spikes=0A= # MaxSpareThreads: Maximum number of idle threads=0A= # MaxThreads: Maximum number of worker threads alive at the same = time=0A= # MaxRequestsPerChild: Maximum number of requests a thread serves. It = is =0A= # recommended that the default value of 0 be set = for this=0A= # directive on NetWare. This will allow the = thread to =0A= # continue to service requests indefinitely. = =0A= =0A= ThreadStackSize 65536=0A= StartThreads 250=0A= MinSpareThreads 25=0A= MaxSpareThreads 250=0A= MaxThreads 1000=0A= MaxRequestsPerChild 0=0A= =0A= =0A= # OS/2 MPM=0A= # StartServers: Number of server processes to maintain=0A= # MinSpareThreads: Minimum number of idle threads per process, =0A= # to handle request spikes=0A= # MaxSpareThreads: Maximum number of idle threads per process=0A= # MaxRequestsPerChild: Maximum number of connections per server = process=0A= =0A= StartServers 2=0A= MinSpareThreads 5=0A= MaxSpareThreads 10=0A= MaxRequestsPerChild 0=0A= =0A= =0A= #=0A= # Listen: Allows you to bind Apache to specific IP addresses and/or=0A= # ports, instead of the default. See also the =0A= # directive.=0A= #=0A= # Change this to Listen on specific IP addresses as shown below to =0A= # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)=0A= #=0A= #Listen 12.34.56.78:80=0A= =0A= Listen 80=0A= =0A= #=0A= # Dynamic Shared Object (DSO) Support=0A= #=0A= # To be able to use the functionality of a module which was built as a = DSO you=0A= # have to place corresponding `LoadModule' lines at this location so = the=0A= # directives contained in it are actually available _before_ they are = used.=0A= # Statically compiled modules (those listed by `httpd -l') do not = need=0A= # to be loaded here.=0A= #=0A= # Example:=0A= # LoadModule foo_module modules/mod_foo.so=0A= #=0A= =0A= #=0A= # ExtendedStatus controls whether Apache will generate "full" status=0A= # information (ExtendedStatus On) or just basic information = (ExtendedStatus=0A= # Off) when the "server-status" handler is called. The default is = Off.=0A= #=0A= #ExtendedStatus On=0A= =0A= ### Section 2: 'Main' server configuration=0A= #=0A= # The directives in this section set up the values used by the = 'main'=0A= # server, which responds to any requests that aren't handled by a=0A= # definition. These values also provide defaults for=0A= # any containers you may define later in the file.=0A= #=0A= # All of these directives may appear inside = containers,=0A= # in which case these default settings will be overridden for the=0A= # virtual host being defined.=0A= #=0A= =0A= =0A= =0A= #=0A= # If you wish httpd to run as a different user or group, you must = run=0A= # httpd as root initially and it will switch. =0A= #=0A= # User/Group: The name (or #number) of the user/group to run httpd = as.=0A= # . On SCO (ODT 3) use "User nouser" and "Group nogroup".=0A= # . On HPUX you may not be able to use shared memory as nobody, and = the=0A= # suggested workaround is to create a user www and use that user.=0A= # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)=0A= # when the value of (unsigned)Group is above 60000; =0A= # don't use Group #-1 on these systems!=0A= #=0A= User nobody=0A= Group #-1 =0A= =0A= =0A= =0A= #=0A= # ServerAdmin: Your address, where problems with the server should = be=0A= # e-mailed. This address appears on some server-generated pages, = such=0A= # as error documents. e.g. admin@your-domain.com=0A= #=0A= ServerAdmin rui.wang@bt.com=0A= =0A= #=0A= # ServerName gives the name and port that the server uses to identify = itself.=0A= # This can often be determined automatically, but we recommend you = specify=0A= # it explicitly to prevent problems during startup.=0A= #=0A= # If this is not set to valid DNS name for your host, = server-generated=0A= # redirections will not work. See also the UseCanonicalName = directive.=0A= #=0A= # If your host doesn't have a registered DNS name, enter its IP address = here.=0A= # You will have to access it by its address anyway, and this will make = =0A= # redirections work in a sensible way.=0A= #=0A= #ServerName lunitari.hfnet.bt.co.uk:80=0A= =0A= #=0A= # UseCanonicalName: Determines how Apache constructs self-referencing = =0A= # URLs and the SERVER_NAME and SERVER_PORT variables.=0A= # When set "Off", Apache will use the Hostname and Port supplied=0A= # by the client. When set "On", Apache will use the value of the=0A= # ServerName directive.=0A= #=0A= UseCanonicalName Off=0A= =0A= #=0A= # DocumentRoot: The directory out of which you will serve your=0A= # documents. By default, all requests are taken from this directory, = but=0A= # symbolic links and aliases may be used to point to other = locations.=0A= #=0A= DocumentRoot "/usr/local/apache2/htdocs"=0A= =0A= #=0A= # Each directory to which Apache has access can be configured with = respect=0A= # to which services and features are allowed and/or disabled in that=0A= # directory (and its subdirectories). =0A= #=0A= # First, we configure the "default" to be a very restrictive set of =0A= # features. =0A= #=0A= =0A= Options All=0A= AllowOverride All=0A= =0A= =0A= #=0A= # Note that from this point forward you must specifically allow=0A= # particular features to be enabled - so if something's not working = as=0A= # you might expect, make sure that you have specifically enabled it=0A= # below.=0A= #=0A= =0A= #=0A= # This should be changed to whatever you set DocumentRoot to.=0A= #=0A= =0A= =0A= #=0A= # Possible values for the Options directive are "None", "All",=0A= # or any combination of:=0A= # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI = MultiViews=0A= #=0A= # Note that "MultiViews" must be named *explicitly* --- "Options = All"=0A= # doesn't give it to you.=0A= #=0A= # The Options directive is both complicated and important. Please = see=0A= # http://httpd.apache.org/docs-2.0/mod/core.html#options=0A= # for more information.=0A= #=0A= Options All =0A= =0A= #=0A= # AllowOverride controls what directives may be placed in .htaccess = files.=0A= # It can be "All", "None", or any combination of the keywords:=0A= # Options FileInfo AuthConfig Limit=0A= #=0A= AllowOverride All=0A= =0A= #=0A= # Controls who can get stuff from this server.=0A= #=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= =0A= #=0A= # UserDir: The name of the directory that is appended onto a user's = home=0A= # directory if a ~user request is received.=0A= #=0A= UserDir public_html=0A= =0A= #=0A= # Control access to UserDir directories. The following is an = example=0A= # for a site where these directories are restricted to read-only.=0A= #=0A= #=0A= # AllowOverride FileInfo AuthConfig Limit Indexes=0A= # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec=0A= # =0A= # Order allow,deny=0A= # Allow from all=0A= # =0A= # =0A= # Order deny,allow=0A= # Deny from all=0A= # =0A= #=0A= =0A= #=0A= # DirectoryIndex: sets the file that Apache will serve if a = directory=0A= # is requested.=0A= #=0A= # The index.html.var file (a type-map) is used to deliver content-=0A= # negotiated documents. The MultiViews Option can be used for the =0A= # same purpose, but it is much slower.=0A= #=0A= DirectoryIndex index.html index.html.var=0A= =0A= #=0A= # AccessFileName: The name of the file to look for in each directory=0A= # for additional configuration directives. See also the AllowOverride = =0A= # directive.=0A= #=0A= AccessFileName .htaccess=0A= =0A= #=0A= # The following lines prevent .htaccess and .htpasswd files from being = =0A= # viewed by Web clients. =0A= #=0A= =0A= Order allow,deny=0A= Deny from all=0A= =0A= =0A= #=0A= # TypesConfig describes where the mime.types file (or equivalent) is=0A= # to be found.=0A= #=0A= TypesConfig conf/mime.types=0A= =0A= #=0A= # DefaultType is the default MIME type the server will use for a = document=0A= # if it cannot otherwise determine one, such as from filename = extensions.=0A= # If your server contains mostly text or HTML documents, "text/plain" = is=0A= # a good value. If most of your content is binary, such as = applications=0A= # or images, you may want to use "application/octet-stream" instead = to=0A= # keep browsers from trying to display binary files as though they = are=0A= # text.=0A= #=0A= DefaultType text/plain=0A= =0A= #=0A= # The mod_mime_magic module allows the server to use various hints from = the=0A= # contents of the file itself to determine its type. The = MIMEMagicFile=0A= # directive tells the module where the hint definitions are located.=0A= #=0A= =0A= MIMEMagicFile conf/magic=0A= =0A= =0A= #=0A= # HostnameLookups: Log the names of clients or just their IP = addresses=0A= # e.g., www.apache.org (on) or 204.62.129.132 (off).=0A= # The default is off because it'd be overall better for the net if = people=0A= # had to knowingly turn this feature on, since enabling it means = that=0A= # each client request will result in AT LEAST one lookup request to = the=0A= # nameserver.=0A= #=0A= HostnameLookups Off=0A= =0A= #=0A= # EnableMMAP: Control whether memory-mapping is used to deliver=0A= # files (assuming that the underlying OS supports it).=0A= # The default is on; turn this off if you serve from NFS-mounted =0A= # filesystems. On some systems, turning it off (regardless of=0A= # filesystem) can improve performance; for details, please see=0A= # http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap=0A= #=0A= #EnableMMAP off=0A= =0A= #=0A= # EnableSendfile: Control whether the sendfile kernel support is =0A= # used to deliver files (assuming that the OS supports it).=0A= # The default is on; turn this off if you serve from NFS-mounted =0A= # filesystems. Please see=0A= # http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile=0A= #=0A= #EnableSendfile off=0A= =0A= #=0A= # ErrorLog: The location of the error log file.=0A= # If you do not specify an ErrorLog directive within a =0A= # container, error messages relating to that virtual host will be=0A= # logged here. If you *do* define an error logfile for a = =0A= # container, that host's errors will be logged there and not here.=0A= #=0A= ErrorLog logs/error_log=0A= =0A= #=0A= # LogLevel: Control the number of messages logged to the error_log.=0A= # Possible values include: debug, info, notice, warn, error, crit,=0A= # alert, emerg.=0A= #=0A= LogLevel warn=0A= =0A= #=0A= # The following directives define some format nicknames for use with=0A= # a CustomLog directive (see below).=0A= #=0A= LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" = \"%{User-Agent}i\"" combined=0A= LogFormat "%h %l %u %t \"%r\" %>s %b" common=0A= LogFormat "%{Referer}i -> %U" referer=0A= LogFormat "%{User-agent}i" agent=0A= =0A= # You need to enable mod_logio.c to use %I and %O=0A= #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" = \"%{User-Agent}i\" %I %O" combinedio=0A= =0A= #=0A= # The location and format of the access logfile (Common Logfile = Format).=0A= # If you do not define any access logfiles within a =0A= # container, they will be logged here. Contrariwise, if you *do*=0A= # define per- access logfiles, transactions will be=0A= # logged therein and *not* in this file.=0A= #=0A= CustomLog logs/access_log common=0A= =0A= #=0A= # If you would like to have agent and referer logfiles, uncomment = the=0A= # following directives.=0A= #=0A= #CustomLog logs/referer_log referer=0A= #CustomLog logs/agent_log agent=0A= =0A= #=0A= # If you prefer a single logfile with access, agent, and referer = information=0A= # (Combined Logfile Format) you can use the following directive.=0A= #=0A= #CustomLog logs/access_log combined=0A= =0A= #=0A= # ServerTokens=0A= # This directive configures what you return as the Server HTTP = response=0A= # Header. The default is 'Full' which sends information about the = OS-Type=0A= # and compiled in modules.=0A= # Set to one of: Full | OS | Minor | Minimal | Major | Prod=0A= # where Full conveys the most information, and Prod the least.=0A= #=0A= ServerTokens Full=0A= =0A= #=0A= # Optionally add a line containing the server version and virtual = host=0A= # name to server-generated pages (internal error documents, FTP = directory =0A= # listings, mod_status and mod_info output etc., but not CGI generated = =0A= # documents or custom error documents).=0A= # Set to "EMail" to also include a mailto: link to the ServerAdmin.=0A= # Set to one of: On | Off | EMail=0A= #=0A= ServerSignature On=0A= =0A= #=0A= # Aliases: Add here as many aliases as you need (with no limit). The = format is =0A= # Alias fakename realname=0A= #=0A= # Note that if you include a trailing / on fakename then the server = will=0A= # require it to be present in the URL. So "/icons" isn't aliased in = this=0A= # example, only "/icons/". If the fakename is slash-terminated, then = the =0A= # realname must also be slash terminated, and if the fakename omits the = =0A= # trailing slash, the realname must also omit it.=0A= #=0A= # We include the /icons/ alias for FancyIndexed directory listings. If = you=0A= # do not use FancyIndexing, you may comment this out.=0A= #=0A= Alias /icons/ "/usr/local/apache2/icons/"=0A= =0A= =0A= Options Indexes MultiViews=0A= AllowOverride None=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # This should be changed to the ServerRoot/manual/. The alias = provides=0A= # the manual, even if you choose to move your DocumentRoot. You may = comment=0A= # this out if you do not care for the documentation.=0A= #=0A= Alias /manual "/usr/local/apache2/manual"=0A= =0A= =0A= Options Indexes FollowSymLinks MultiViews IncludesNoExec=0A= AddOutputFilter Includes html=0A= AllowOverride None=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= #=0A= # ScriptAlias: This controls which directories contain server = scripts.=0A= # ScriptAliases are essentially the same as Aliases, except that=0A= # documents in the realname directory are treated as applications = and=0A= # run by the server when requested rather than as documents sent to the = client.=0A= # The same rules about trailing "/" apply to ScriptAlias directives as = to=0A= # Alias.=0A= #=0A= #ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/" =0A= =0A= =0A= #=0A= # Additional to mod_cgid.c settings, mod_cgid has Scriptsock =0A= # for setting UNIX socket for communicating with cgid.=0A= #=0A= #Scriptsock logs/cgisock=0A= =0A= #=0A= # "/usr/local/apache2/cgi-bin" should be changed to whatever your = ScriptAliased=0A= # CGI directory exists, if you have that configured.=0A= #=0A= =0A= #=0A= # Options ExecCGI MultiViews=0A= # AllowOverride All =0A= # Order allow,deny=0A= # Allow from all=0A= #=0A= =0A= ScriptAlias /my-cgi-bin/ "/home/harry/lbone-0.8.4/cgi/src/"=0A= =0A= =0A= Options All=0A= Order allow,deny=0A= Allow from all=0A= =0A= =0A= AddHandler cgi-script .cgi pl=0A= #=0A= # Redirect allows you to tell clients about documents which used to = exist in=0A= # your server's namespace, but do not anymore. This allows you to tell = the=0A= # clients where to look for the relocated document.=0A= # Example:=0A= # Redirect permanent /foo http://www.example.com/bar=0A= =0A= #=0A= # Directives controlling the display of server-generated directory = listings.=0A= #=0A= =0A= #=0A= # IndexOptions: Controls the appearance of server-generated = directory=0A= # listings.=0A= #=0A= IndexOptions FancyIndexing VersionSort=0A= =0A= #=0A= # AddIcon* directives tell the server which icon to show for = different=0A= # files or filename extensions. These are only displayed for=0A= # FancyIndexed directories.=0A= #=0A= AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip=0A= =0A= AddIconByType (TXT,/icons/text.gif) text/*=0A= AddIconByType (IMG,/icons/image2.gif) image/*=0A= AddIconByType (SND,/icons/sound2.gif) audio/*=0A= AddIconByType (VID,/icons/movie.gif) video/*=0A= =0A= AddIcon /icons/binary.gif .bin .exe=0A= AddIcon /icons/binhex.gif .hqx=0A= AddIcon /icons/tar.gif .tar=0A= AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv=0A= AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip=0A= AddIcon /icons/a.gif .ps .ai .eps=0A= AddIcon /icons/layout.gif .html .shtml .htm .pdf=0A= AddIcon /icons/text.gif .txt=0A= AddIcon /icons/c.gif .c=0A= AddIcon /icons/p.gif .pl .py=0A= AddIcon /icons/f.gif .for=0A= AddIcon /icons/dvi.gif .dvi=0A= AddIcon /icons/uuencoded.gif .uu=0A= AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl=0A= AddIcon /icons/tex.gif .tex=0A= AddIcon /icons/bomb.gif core=0A= =0A= AddIcon /icons/back.gif ..=0A= AddIcon /icons/hand.right.gif README=0A= AddIcon /icons/folder.gif ^^DIRECTORY^^=0A= AddIcon /icons/blank.gif ^^BLANKICON^^=0A= =0A= #=0A= # DefaultIcon is which icon to show for files which do not have an = icon=0A= # explicitly set.=0A= #=0A= DefaultIcon /icons/unknown.gif=0A= =0A= #=0A= # AddDescription allows you to place a short description after a file = in=0A= # server-generated indexes. These are only displayed for = FancyIndexed=0A= # directories.=0A= # Format: AddDescription "description" filename=0A= #=0A= #AddDescription "GZIP compressed document" .gz=0A= #AddDescription "tar archive" .tar=0A= #AddDescription "GZIP compressed tar archive" .tgz=0A= =0A= #=0A= # ReadmeName is the name of the README file the server will look for = by=0A= # default, and append to directory listings.=0A= #=0A= # HeaderName is the name of a file which should be prepended to=0A= # directory indexes. =0A= ReadmeName README.html=0A= HeaderName HEADER.html=0A= =0A= #=0A= # IndexIgnore is a set of filenames which directory indexing should = ignore=0A= # and not include in the listing. Shell-style wildcarding is = permitted.=0A= #=0A= IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t=0A= =0A= #=0A= # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) = uncompress=0A= # information on the fly. Note: Not all browsers support this.=0A= # Despite the name similarity, the following Add* directives have = nothing=0A= # to do with the FancyIndexing customization directives above.=0A= #=0A= AddEncoding x-compress Z=0A= AddEncoding x-gzip gz tgz=0A= =0A= #=0A= # DefaultLanguage and AddLanguage allows you to specify the language of = =0A= # a document. You can then use content negotiation to give a browser a = =0A= # file in a language the user can understand.=0A= #=0A= # Specify a default language. This means that all data=0A= # going out without a specific language tag (see below) will =0A= # be marked with this one. You probably do NOT want to set=0A= # this unless you are sure it is correct for all cases.=0A= #=0A= # * It is generally better to not mark a page as =0A= # * being a certain language than marking it with the wrong=0A= # * language!=0A= #=0A= # DefaultLanguage nl=0A= #=0A= # Note 1: The suffix does not have to be the same as the language=0A= # keyword --- those with documents in Polish (whose net-standard=0A= # language code is pl) may wish to use "AddLanguage pl .po" to=0A= # avoid the ambiguity with the common suffix for perl scripts.=0A= #=0A= # Note 2: The example entries below illustrate that in some cases =0A= # the two character 'Language' abbreviation is not identical to =0A= # the two character 'Country' code for its country,=0A= # E.g. 'Danmark/dk' versus 'Danish/da'.=0A= #=0A= # Note 3: In the case of 'ltz' we violate the RFC by using a three = char=0A= # specifier. There is 'work in progress' to fix this and get=0A= # the reference data for rfc1766 cleaned up.=0A= #=0A= # Danish (da) - Dutch (nl) - English (en) - Estonian (et)=0A= # French (fr) - German (de) - Greek-Modern (el)=0A= # Italian (it) - Norwegian (no) - Norwegian Nynorsk (nn) - Korean (ko) = =0A= # Portugese (pt) - Luxembourgeois* (ltz)=0A= # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)=0A= # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)=0A= # Russian (ru) - Croatian (hr)=0A= #=0A= AddLanguage da .dk=0A= AddLanguage nl .nl=0A= AddLanguage en .en=0A= AddLanguage et .et=0A= AddLanguage fr .fr=0A= AddLanguage de .de=0A= AddLanguage he .he=0A= AddLanguage el .el=0A= AddLanguage it .it=0A= AddLanguage ja .ja=0A= AddLanguage pl .po=0A= AddLanguage ko .ko=0A= AddLanguage pt .pt=0A= AddLanguage nn .nn=0A= AddLanguage no .no=0A= AddLanguage pt-br .pt-br=0A= AddLanguage ltz .ltz=0A= AddLanguage ca .ca=0A= AddLanguage es .es=0A= AddLanguage sv .sv=0A= AddLanguage cz .cz=0A= AddLanguage ru .ru=0A= AddLanguage tw .tw=0A= AddLanguage zh-tw .tw=0A= AddLanguage hr .hr=0A= =0A= #=0A= # LanguagePriority allows you to give precedence to some languages=0A= # in case of a tie during content negotiation.=0A= #=0A= # Just list the languages in decreasing order of preference. We have=0A= # more or less alphabetized them here. You probably want to change = this.=0A= #=0A= LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es = sv tw=0A= =0A= #=0A= # ForceLanguagePriority allows you to serve a result page rather = than=0A= # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE = (Fallback)=0A= # [in case no accepted languages matched the available variants]=0A= #=0A= ForceLanguagePriority Prefer Fallback=0A= =0A= #=0A= # Specify a default charset for all pages sent out. This is=0A= # always a good idea and opens the door for future = internationalisation=0A= # of your web site, should you ever want it. Specifying it as=0A= # a default does little harm; as the standard dictates that a page=0A= # is in iso-8859-1 (latin1) unless specified otherwise i.e. you=0A= # are merely stating the obvious. There are also some security=0A= # reasons in browsers, related to javascript and URL parsing=0A= # which encourage you to always set a default char set.=0A= #=0A= AddDefaultCharset ISO-8859-1=0A= =0A= #=0A= # Commonly used filename extensions to character sets. You probably=0A= # want to avoid clashes with the language extensions, unless you=0A= # are good at carefully testing your setup after each change.=0A= # See http://www.iana.org/assignments/character-sets for the=0A= # official list of charset names and their respective RFCs.=0A= #=0A= AddCharset ISO-8859-1 .iso8859-1 .latin1=0A= AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen=0A= AddCharset ISO-8859-3 .iso8859-3 .latin3=0A= AddCharset ISO-8859-4 .iso8859-4 .latin4=0A= AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru=0A= AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb=0A= AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk=0A= AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb=0A= AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk=0A= AddCharset ISO-2022-JP .iso2022-jp .jis=0A= AddCharset ISO-2022-KR .iso2022-kr .kis=0A= AddCharset ISO-2022-CN .iso2022-cn .cis=0A= AddCharset Big5 .Big5 .big5=0A= # For russian, more than one charset is used (depends on client, = mostly):=0A= AddCharset WINDOWS-1251 .cp-1251 .win-1251=0A= AddCharset CP866 .cp866=0A= AddCharset KOI8-r .koi8-r .koi8-ru=0A= AddCharset KOI8-ru .koi8-uk .ua=0A= AddCharset ISO-10646-UCS-2 .ucs2=0A= AddCharset ISO-10646-UCS-4 .ucs4=0A= AddCharset UTF-8 .utf8=0A= =0A= # The set below does not map to a specific (iso) standard=0A= # but works on a fairly wide range of browsers. Note that=0A= # capitalization actually matters (it should not, but it=0A= # does for some browsers).=0A= #=0A= # See http://www.iana.org/assignments/character-sets=0A= # for a list of sorts. But browsers support few.=0A= #=0A= AddCharset GB2312 .gb2312 .gb =0A= AddCharset utf-7 .utf7=0A= AddCharset utf-8 .utf8=0A= AddCharset big5 .big5 .b5=0A= AddCharset EUC-TW .euc-tw=0A= AddCharset EUC-JP .euc-jp=0A= AddCharset EUC-KR .euc-kr=0A= AddCharset shift_jis .sjis=0A= =0A= #=0A= # AddType allows you to add to or override the MIME configuration=0A= # file mime.types for specific file types.=0A= #=0A= AddType application/x-tar .tgz=0A= AddType image/x-icon .ico=0A= =0A= #=0A= # AddHandler allows you to map certain file extensions to = "handlers":=0A= # actions unrelated to filetype. These can be either built into the = server=0A= # or added with the Action directive (see below)=0A= #=0A= # To use CGI scripts outside of ScriptAliased directories:=0A= # (You will also need to add "ExecCGI" to the "Options" directive.)=0A= #=0A= =0A= =0A= =0A= =0A= #AddHandler cgi-script .cgi pl=0A= =0A= #=0A= # For files that include their own HTTP headers:=0A= #=0A= #AddHandler send-as-is asis=0A= =0A= #=0A= # For server-parsed imagemap files:=0A= #=0A= #AddHandler imap-file map=0A= =0A= #=0A= # For type maps (negotiated resources):=0A= # (This is enabled by default to allow the Apache "It Worked" page=0A= # to be distributed in multiple languages.)=0A= #=0A= AddHandler type-map var=0A= =0A= #=0A= # Filters allow you to process content before it is sent to the = client.=0A= #=0A= # To parse .shtml files for server-side includes (SSI):=0A= # (You will also need to add "Includes" to the "Options" directive.)=0A= #=0A= #AddType text/html .shtml=0A= #AddOutputFilter INCLUDES .shtml=0A= =0A= #=0A= # Action lets you define media types that will execute a script = whenever=0A= # a matching file is called. This eliminates the need for repeated = URL=0A= # pathnames for oft-used CGI file processors.=0A= # Format: Action media/type /cgi-script/location=0A= # Format: Action handler-name /cgi-script/location=0A= #=0A= =0A= #=0A= # Customizable error responses come in three flavors:=0A= # 1) plain text 2) local redirects 3) external redirects=0A= #=0A= # Some examples:=0A= #ErrorDocument 500 "The server made a boo boo."=0A= #ErrorDocument 404 /missing.html=0A= #ErrorDocument 404 "/cgi-bin/missing_handler.pl"=0A= #ErrorDocument 402 http://www.example.com/subscription_info.html=0A= #=0A= =0A= #=0A= # Putting this all together, we can internationalize error = responses.=0A= #=0A= # We use Alias to redirect any /error/HTTP_.html.var response = to=0A= # our collection of by-error message multi-language collections. We = use =0A= # includes to substitute the appropriate text.=0A= #=0A= # You can modify the messages' appearance without changing any of = the=0A= # default HTTP_.html.var files by adding the line:=0A= #=0A= # Alias /error/include/ "/your/include/path/"=0A= #=0A= # which allows you to create your own set of files by starting with = the=0A= # /usr/local/apache2/error/include/ files and copying them to = /your/include/path/, =0A= # even on a per-VirtualHost basis. The default include files will = display=0A= # your Apache version number and your ServerAdmin email address = regardless=0A= # of the setting of ServerSignature.=0A= #=0A= # The internationalized error documents require mod_alias, = mod_include=0A= # and mod_negotiation. To activate them, uncomment the following 30 = lines.=0A= =0A= # Alias /error/ "/usr/local/apache2/error/"=0A= #=0A= # =0A= # AllowOverride None=0A= # Options IncludesNoExec=0A= # AddOutputFilter Includes html=0A= # AddHandler type-map var=0A= # Order allow,deny=0A= # Allow from all=0A= # LanguagePriority en de es fr it nl sv=0A= # ForceLanguagePriority Prefer Fallback=0A= # =0A= #=0A= # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var=0A= # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var=0A= # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var=0A= # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var=0A= # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var=0A= # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var=0A= # ErrorDocument 410 /error/HTTP_GONE.html.var=0A= # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var=0A= # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var=0A= # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var=0A= # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var=0A= # ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var=0A= # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var=0A= # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var=0A= # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var=0A= # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var=0A= # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var=0A= =0A= =0A= #=0A= # The following directives modify normal HTTP response behavior to=0A= # handle known problems with browser implementations.=0A= #=0A= BrowserMatch "Mozilla/2" nokeepalive=0A= BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 = force-response-1.0=0A= BrowserMatch "RealPlayer 4\.0" force-response-1.0=0A= BrowserMatch "Java/1\.0" force-response-1.0=0A= BrowserMatch "JDK/1\.0" force-response-1.0=0A= =0A= #=0A= # The following directive disables redirects on non-GET requests for=0A= # a directory that does not include the trailing slash. This fixes a = =0A= # problem with Microsoft WebFolders which does not appropriately handle = =0A= # redirects for folders with DAV methods.=0A= # Same deal with Apple's DAV filesystem and Gnome VFS support for = DAV.=0A= #=0A= BrowserMatch "Microsoft Data Access Internet Publishing Provider" = redirect-carefully=0A= BrowserMatch "^WebDrive" redirect-carefully=0A= BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully=0A= BrowserMatch "^gnome-vfs" redirect-carefully=0A= =0A= #=0A= # Allow server status reports generated by mod_status,=0A= # with the URL of http://servername/server-status=0A= # Change the ".example.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-status=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .example.com=0A= #=0A= =0A= #=0A= # Allow remote server configuration reports, with the URL of=0A= # http://servername/server-info (requires that mod_info.c be = loaded).=0A= # Change the ".example.com" to match your domain to enable.=0A= #=0A= #=0A= # SetHandler server-info=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .example.com=0A= #=0A= =0A= #=0A= # Proxy Server directives. Uncomment the following lines to=0A= # enable the proxy server:=0A= #=0A= #=0A= #ProxyRequests On=0A= #=0A= #=0A= # Order deny,allow=0A= # Deny from all=0A= # Allow from .example.com=0A= #=0A= =0A= #=0A= # Enable/disable the handling of HTTP/1.1 "Via:" headers.=0A= # ("Full" adds the server version; "Block" removes all outgoing Via: = headers)=0A= # Set to one of: Off | On | Full | Block=0A= #=0A= #ProxyVia On=0A= =0A= #=0A= # To enable the cache as well, edit and uncomment the following = lines:=0A= # (no cacheing without CacheRoot)=0A= #=0A= #CacheRoot "/usr/local/apache2/proxy"=0A= #CacheSize 5=0A= #CacheGcInterval 4=0A= #CacheMaxExpire 24=0A= #CacheLastModifiedFactor 0.1=0A= #CacheDefaultExpire 1=0A= #NoCache a-domain.com another-domain.edu joes.garage-sale.com=0A= =0A= #=0A= # End of proxy directives.=0A= =0A= #=0A= # Bring in additional module-specific configurations=0A= #=0A= =0A= Include conf/ssl.conf=0A= =0A= =0A= =0A= ### Section 3: Virtual Hosts=0A= #=0A= # VirtualHost: If you want to maintain multiple domains/hostnames on = your=0A= # machine you can setup VirtualHost containers for them. Most = configurations=0A= # use only name-based virtual hosts so the server doesn't need to worry = about=0A= # IP addresses. This is indicated by the asterisks in the directives = below.=0A= #=0A= # Please see the documentation at =0A= # =0A= # for further details before you try to setup virtual hosts.=0A= #=0A= # You may use the command line option '-S' to verify your virtual = host=0A= # configuration.=0A= =0A= #=0A= # Use name-based virtual hosting.=0A= #=0A= #NameVirtualHost *=0A= =0A= #=0A= # VirtualHost example:=0A= # Almost any Apache directive may go into a VirtualHost container.=0A= # The first VirtualHost section is used for requests without a known=0A= # server name.=0A= #=0A= #=0A= # ServerAdmin webmaster@dummy-host.example.com=0A= # DocumentRoot /www/docs/dummy-host.example.com=0A= # ServerName dummy-host.example.com=0A= # ErrorLog logs/dummy-host.example.com-error_log=0A= # CustomLog logs/dummy-host.example.com-access_log common=0A= #=0A= ------_=_NextPart_000_01C31A0A.420D1D75 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- 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 ------_=_NextPart_000_01C31A0A.420D1D75--