SUMMARY: setting up NCSA httpd 1.5.1

From: James Cassidy (jamesc@s3two.ie)
Date: Thu Jun 06 1996 - 04:56:22 CDT


Hi all,

        Thanks for the quick response to the following.

> Hi all Sun_Managers
>
> I just recently downloaded version 1.5.1 of the NCSA
> precompiled httpd daemon for Solaris 2.4. I have modified
> the httpd.conf, srm.conf and access.conf for a very
> basic setup as I wish to use the httpd daemon to serve our LAN with
> NO external access. Base directory is the same as the one supplied
> in the configuration files (ie /usr/local/etc/httpd) .
> Does DNS have to be running on this machine and if so what is the
> minimum server configuration I could get away with. The machine I'm
> attempting to run the httpd daemon on is also an NIS+ client.
> Below is the error I'm getting, maybe it's so blatently obvious I can't
> see it.
> A summary will be compiled.
>
> thanks in advance,
>
> James.
>
> ----------------------------------------------------
>
> hostx# ./httpd&
> [1] 1783
> hostx# NCSA HTTPd NCSA/1.5.1
> Licensed material. Portions of this work are
> Copyright (C) 1995-1996 Board of Trustees of the University of Illinois
> Copyright (C) 1995-1996 The Apache Group
> Copyright (C) 1989-1993 RSA Data Security, Inc.
> Copyright (C) 1993-1994 Carnegie Mellon University
> Copyright (C) 1991 Bell Communications Research, Inc. (Bellcore)
> Copyright (C) 1994 Spyglass, Inc.
> HTTPd: cannot determine local host name.
> Use ServerName to set it manually.
>
> [1] Exit 1 ./httpd
> hostx#

Here are the responses :
------------------------

 

1. ServerName www.some.domain

   We set the ServerName manually.

   garcia@sr5.chinalake.navy.mil
   Mike Garcia

2. Yes. The machine must be a DNS client. However. it doesn't have to be
   a DNS server. You can do two things. You can create a DNS domain/server
   etc for your machine by making a server and commenting out the entries in
   named.ca (your cache file) if you're not connected to the internet.
   Also, you can put an entry .htaccess or your htdocs (document root
   directory) to deny any machines that are not from your subnet, class c or
   whatever.

   justiny@cluster.engr.subr.edu
   Justin Young

3. We are also runing the NCSA 1.5.1 on Solaris 2.4 with great success.
   I am sure that there must be a DNS to resolve the URLs that the web clients
   will request. I am not so sure about the httpd server it self.
   There is a place in the httpd.conf file where you must give the httpd
   server a name, you might be able to give it an ip address, but I
   suspect that you SHOULD have a DNS for this as well. While I do not
   claim to be an expert on this you can fell free to contact me
   directly and I will try to give as much help as I can.

   Robert P. Sessions
   roberts@pwl.com

4. It looks like the machine you are running on cannot run the hostname
   command and so it tries to find it from httpd.conf and the option ServerName.
   This is the name a client browser will see. If you are running the httpd as
   a user other than root you may not have hostname in your path.

   dpc@generics.co.uk

5. You dont need DNS server on this server,
   but if you like resolve names with DNS, you can easy to do to put entry
   in /etc/nsswitch.conf
   hosts: nisplus dns [NOTFOUND=return] files

   & make file /etc/resolve.conf with domain & nameserver entries
   such as
   domain aaa.aaa.com
   nameserver 111.111.111.111

   maris@sun.swh.lv

6. Looks to me as if you missed the line in the httpd.conf configuration file
   called "SeverName" (it's in the Server customisation section). If you omit
   this, the server attempts to determine it for itself.

   Mick

   PS - make sure the name you give in the conf file is actually a valid name
   for the machine!)

   maillist@ccta.gov.uk
   Mick Morgan

   When I set the "SeverName" in the httpd.conf file the daemon fired up ok
   Thanks to all who replied.

        regards,
                James.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:01 CDT