You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@hyperreal.com> on 1995/10/10 04:24:10 UTC

Problems with Apache (fwd) IMAP

One for Randy..

Forwarded message:
> From sks@dodo.crown.net  Mon Oct  9 11:45:29 1995
> From: <sk...@crown.net>
> Message-Id: <19...@dodo.crown.net>
> Subject: Problems with Apache 
> To: apache-bugs@mail.apache.org
> Date: Mon, 9 Oct 1995 13:44:34 -0500 (CDT)
> X-Mailer: ELM [version 2.4 PL24 PGP3 *ALPHA*]
> MIME-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> Content-Length: 13859     
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> After installing Apache 8.14 I have been having many problems with executing
> any typ of cgi script.  In addition, the following is a .map file:
> 
> 
> default http://dodo.crown.net/index.html
> base_uri referer
> rect http://www.crown.net/crown/windy.html 2,253 197,280 
> rect http://www.crown.net/crown/intronet.html 201,253 398,282 
> rect http://www.crown.net/crown/crownnews.html 3,284 198,313 
> rect http://www.crown.net/crown/intouch.html 199,284 397,310 
> rect http://www.crown.net/business/ 2,315 197,343 
> rect http://www.crown.net/realestate/ 200,316 397,342 
> rect http://www.crown.net/crown/pages.html 2,346 195,373 
> rect http://www.crown.net/crown/links.html 200,345 396,375 
> rect http://www.crown.net/imagelist.html 2,377 195,404 
> rect http://www.crown.net/backgroundlist.html 201,377 397,405 
> rect http://www.crown.net/X/ 3,409 198,436 
> rect http://www.crown.net/crown/en.html 200,409 398,435 
> rect telnet://dodo.crown.net:9000 2,438 198,468 
> rect http://www.crown.net/weather.html 201,440 396,466 
> rect http://www.crown.net/stats/stat0.html 2,472 198,498 
> rect http://www.crown.net/crown/cooking.html 201,471 398,498 
> 
> As you can see, I added the line for base_uri, as it appears in your documentation.
> My problem is with line 15.  The hook for telnet no longer works.  Is this a
> formatting problem, a bug in Apache, something I did under NCSA that should
> not have worked, or am I just plain stupid?
> 
> Your rapid response would be appreciated.  I am enclosing all of my .conf
> files for good measure.
> 
> Access.conf
> 
> # access.conf: Global access configuration
> # Online docs at http://www.apache.org/
> 
> # This file defines server settings which affect which types of services
> # are allowed, and in what circumstances. 
> 
> # Each directory to which Apache has access, can be configured with respect
> # to which services and features are allowed and/or disabled in that
> # directory (and its subdirectories). 
> 
> # Originally by Rob McCool
> 
> # /usr/local/etc/httpd/ should be changed to whatever you set ServerRoot to.
> <Directory /home/httpd/cgi-bin>
> Options Indexes FollowSymLinks ExecCGI
> </Directory>
> 
> # This should be changed to whatever you set DocumentRoot to.
> 
> <Directory /home/httpd/htdocs>
> 
> # This may also be "None", "All", or any combination of "Indexes",
> # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
> 
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you (or at least, not yet).
> 
> Options Indexes FollowSymLinks ExecCGI
> 
> # This option allows you to turn on the XBitHack behavior, which allows you
> # to make text/html server-parsed by activating the owner x bit with chmod. 
> # This directive may be used wherever Options may, and has three
> # possible arguments: Off, On or Full. If set to full, Apache will also
> # add a Last-Modified header to the document if the group x bit is set.
> 
> # Unless the server has been compiled with -DXBITHACK, this function is
> # off by default. To use, uncomment the following line:
> 
> #XBitHack Full
> 
> # This controls which options the .htaccess files in directories can
> # override. Can also be "None", or any combination of "Options", "FileInfo", 
> # "AuthConfig", and "Limit"
> 
> AllowOverride All
> 
> # Controls who can get stuff from this server.
> 
> <Limit GET>
> order allow,deny
> allow from all
> </Limit>
> 
> </Directory>
> 
> # You may place any other directories you wish to have access
> # information for after this one.
> 
> 
> Httpd.conf
> 
> # This is the main server configuration file. See URL http://www.apache.org/
> # for instructions.
> 
> # Do NOT simply read the instructions in here without understanding
> # what they do, if you are unsure consult the online docs. You have been
> # warned.  
> 
> # Originally by Rob McCool
> 
> # ServerType is either inetd, or standalone.
> 
> ServerType standalone
> 
> # If you are running from inetd, go to "ServerAdmin".
> 
> # Port: The port the standalone listens to. For ports < 1023, you will
> # need httpd to be run as root initially.
> 
> Port 80
> 
> # If you wish httpd to run as a different user or group, you must run
> # httpd as root initially and it will switch.  
> 
> # User/Group: The name (or #number) of the user/group to run httpd as.
> 
> User http
> Group WWW
> 
> # ServerAdmin: Your address, where problems with the server should be
> # e-mailed.
> 
> ServerAdmin sks@crown.net
> 
> # ServerRoot: The directory the server's config, error, and log files
> # are kept in
> 
> ServerRoot /home/httpd
> 
> # BindAddress: You can support virtual hosts with this option. This option
> # is used to tell the server which IP address to listen to. It can either
> # contain "*", an IP address, or a fully qualified Internet domain name.
> # See also the VirtualHost directive.
> 
> #BindAddress *
> 
> # ErrorLog: The location of the error log file. If this does not start
> # with /, ServerRoot is prepended to it.
> 
> ErrorLog logs/error_log
> 
> # TransferLog: The location of the transfer log file. If this does not
> # start with /, ServerRoot is prepended to it.
> 
> TransferLog logs/access_log
> 
> # PidFile: The file the server should log its pid to
> PidFile logs/httpd.pid
> 
> # ServerName allows you to set a host name which is sent back to clients for
> # your server if it's different than the one the program would get (i.e. use
> # "www" instead of the host's real name).
> #
> # Note: You cannot just invent host names and hope they work. The name you 
> # define here must be a valid DNS name for your host. If you don't understand
> # this, ask your network administrator.
> 
> ServerName www.crown.net
> 
> # CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
> # document that was negotiated on the basis of content. This asks proxy
> # servers not to cache the document. Uncommenting the following line disables
> # this behavior, and proxies will be allowed to cache the documents.
> 
> CacheNegotiatedDocs
> 
> # Timeout: The number of seconds before receives and sends time out
> #  n.b. the compiled default is 1200 (20 minutes !)
> 
> Timeout 400
> 
> # Server-pool size regulation.  Rather than making you guess how many
> # server processes you need, Apache dynamically adapts to the load it
> # sees --- that is, it tries to maintain enough server processes to
> # handle the current load, plus a few spare servers to handle transient
> # load spikes (e.g., multiple simultaneous requests from a single
> # Netscape browser).
> 
> # It does this by periodically checking how many servers are waiting
> # for a request.  If there are fewer than MinSpareServers, it creates
> # a new spare.  If there are more than MaxSpareServers, some of the
> # spares die off.  These values are probably OK for most sites ---
> 
> MinSpareServers 5
> MaxSpareServers 10
> 
> # Number of servers to start --- should be a reasonable ballpark figure.
> 
> StartServers 5
> 
> # Limit on total number of servers running, i.e., limit on the number
> # of clients who can simultaneously connect --- if this limit is ever
> # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
> # It is intended mainly as a brake to keep a runaway server from taking
> # Unix with it as it spirals down...
> 
> MaxClients 150
> 
> # MaxRequestsPerChild: the number of requests each child process is
> #  allowed to process before the child dies.
> #  The child will exit so as to avoid problems after prolonged use when
> #  Apache (and maybe the libraries it uses) leak.  On most systems, this
> #  isn't really needed, but a few (such as Solaris) do have notable leaks
> #  in the libraries.
> 
> MaxRequestsPerChild 30
> 
> # VirtualHost: Allows the daemon to respond to requests for more than one
> # server address, if your server machine is configured to accept IP packets
> # for multiple addresses. This can be accomplished with the ifconfig 
> # alias flag, or through kernel patches like VIF.
> 
> # Any httpd.conf or srm.conf directive may go into a VirtualHost command.
> # See alto the BindAddress entry.
>  
> #<VirtualHost host.foo.com>
> #ServerAdmin webmaster@host.foo.com
> #DocumentRoot /www/docs/host.foo.com
> #ServerName host.foo.com
> #ErrorLog logs/host.foo.com-error_log
> #TransferLog logs/host.foo.com-access_log
> #</VirtualHost>
> 
> Srm.conf
> 
> # With this document, you define the name space that users see of your http
> # server.  This file also defines server settings which affect how requests are
> # serviced, and how results should be formatted. 
>   
> # See the tutorials at http://www.apache.org/ for
> # more information.
> 
> # Originally by Rob McCool; Adapted for Apache
> 
> 
> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory, but
> # symbolic links and aliases may be used to point to other locations.
> 
> DocumentRoot /home/httpd/htdocs
> 
> # UserDir: The name of the directory which is appended onto a user's home
> # directory if a ~user request is recieved.
> 
> UserDir www
> 
> # DirectoryIndex: Name of the file or files to use as a pre-written HTML
> # directory index.  Separate multiple entries with spaces.
> 
> DirectoryIndex index.html
> 
> # FancyIndexing is whether you want fancy directory indexing or standard
> 
> FancyIndexing on
> 
> # AddIcon tells the server which icon to show for different files or filename
> # extensions
> 
> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
> AddIconByType (TXT,/icons/text.gif) text/*
> AddIconByType (IMG,/icons/image2.gif) image/*
> AddIconByType (SND,/icons/sound2.gif) audio/*
> AddIconByType (VID,/icons/movie.gif) video/*
> AddIcon /icons/text.gif .ps .shtml
> AddIcon /icons/movie.gif .mpg .qt
> AddIcon /icons/binary.gif .bin   
> AddIcon /icons/burst.gif .wrl    
> AddIcon /icons/binhex.gif .hqx .sit
> AddIcon /icons/uu.gif .uu 
> AddIcon /icons/tar.gif .tar  .tar
> AddIcon /icons/back.gif ..
> AddIcon /icons/dir.gif ^^DIRECTORY^^
> AddIcon /icons/blank.gif ^^BLANKICON^^
> 
> # DefaultIcon is which icon to show for files which do not have an icon
> # explicitly set.
> 
> DefaultIcon /icons/unknown.gif
> 
> # AddDescription allows you to place a short description after a file in
> # server-generated indexes.
> # Format: AddDescription "description" filename
> 
> # ReadmeName is the name of the README file the server will look for by
> # default. Format: ReadmeName name
> #
> # The server will first look for name.html, include it if found, and it will
> # then look for name and include it as plaintext if found.
> #
> # HeaderName is the name of a file which should be prepended to
> # directory indexes. 
> 
> ReadmeName README
> HeaderName HEADER
> 
> # IndexIgnore is a set of filenames which directory indexing should ignore
> # Format: IndexIgnore name1 name2...
> 
> IndexIgnore */.??* *~ *# */HEADER* */README* */RCS
> 
> # AccessFileName: The name of the file to look for in each directory
> # for access control information.
> 
> AccessFileName .htaccess
> 
> # DefaultType is the default MIME type for documents which the server
> # cannot find the type of from filename extensions.
> 
> DefaultType text/plain
> 
> # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
> # information on the fly. Note: Not all browsers support this.
> 
> AddEncoding x-compress Z
> AddEncoding x-gzip gz
> 
> # AddLanguage allows you to specify the language of a document. You can
> # then use content negotiation to give a browser a file in a language
> # it can understand.  Note that the suffix does not have to be the same
> # as the language keyword --- those with documents in Polish (whose
> # net-standard language code is pl) may wish to use "AddLanguage pl .po" 
> # to avoid the ambiguity with the common suffix for perl scripts.
> 
> AddLanguage en .en
> AddLanguage fr .fr
> AddLanguage de .de
> AddLanguage da .da
> AddLanguage el .el
> AddLanguage it .it
> 
> # LanguagePriority allows you to give precedence to some languages
> # in case of a tie during content negotiation.
> # Just list the languages in decreasing order of preference.
> 
> LanguagePriority en fr de
> 
> # Redirect allows you to tell clients about documents which used to exist in
> # your server's namespace, but do not anymore. This allows you to tell the
> # clients where to look for the relocated document.
> # Format: Redirect fakename url
> 
> 
> # Aliases: Add here as many aliases as you need (with no limit). The format is 
> # Alias fakename realname
> 
> Alias /icons/ /home/httpd/icons/
> 
> # ScriptAlias: This controls which directories contain server scripts.
> # Format: ScriptAlias fakename realname
> 
> ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> ScriptAlias /cgi/ /home/dodo/mpg/www/cgi/
> 
> # If you want to use server side includes, or CGI outside
> # ScriptAliased directories, uncomment the following lines.
> 
> # AddType allows you to tweak mime.types without actually editing it, or to
> # make certain files to be certain types.
> # Format: AddType type/subtype ext1
> 
> AddType text/x-server-parsed-html .shtml
> AddType application/x-httpd-cgi .cgi
> 
> # For server-side includes which will be treated as HTML3
> # for purposes of content negotiation, use
> 
> AddType text/x-server-parsed-html3 .shtml3
> 
> # Uncomment the following line to enable Apache's send-asis HTTP file
> # feature
> 
> AddType httpd/send-as-is asis
> 
> # To enable type maps, you might want to use
> 
> AddType application/x-type-map var
> 
> # If you wish to use server-parsed imagemap files, use
> 
> AddType application/x-httpd-imap map
> 
> # Customizable error response (Apache style)
> #  these come in three flavors
> #
> #    1) plain text
> #ErrorDocument 500 "The server made a boo boo.
> #  n.b.  the (") marks it as text, it does not get output
> #
> #    2) local redirects
> #ErrorDocument 404 /missing.html
> #  to redirect to local url /missing.html
> #ErrorDocument 404 /cgi-bin/missing_handler.pl
> #  n.b. can redirect to a script or a document using server-side-includes.
> #
> #    3) external redirects
> #ErrorDocument 402 http://other.server.com/subscription_info.html
> #
> 
> 
> 
> 
> Thank you.
> 
> Sam (sks@crown.net)
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
> 
> iQCVAwUBMHlRaur+UHmDv36tAQHT9QP+MQ/col4HB+ZPIJuUemjDRvWK1cBo9kVn
> 8C3laNX767ASZLHmSTgaHq6b3P44/FSQ1zGVxFyTH8JdXL0lRWplHRiEbveYPfJC
> It/wjshHn3bmomh9TxRuETU/g7i3+Vh07nI1FtApRhmEyo4IucfoLeEH19wrcJdh
> iMbGNfrDzVo=
> =5aTj
> -----END PGP SIGNATURE-----
>