#
#	Sample configuration file for cern_httpd for running it
#	as a normal HTTP server.
#
# See:
#	<http://info.cern.ch/hypertext/WWW/Daemon/User/Config/Overview.html>
#
# for more information.
#
# Written by:
#	Ari Luotonen  April 1994  <luotonen@dxcern.cern.ch>
#

#
#	Set this to point to the directory where you unpacked this
#	distribution, or wherever you want httpd to have its "home"
#
# The directory we use in our test system
ServerRoot	/oloc/1g/newgnats/www 

#
#	The default port for HTTP is 80; if you are not root you have
#	to use a port above 1024; good defaults are 8000, 8001, 8080
#
Port	80

#
#	General setup; on some systems, like HP, nobody is defined so
#	that setuid() fails; in those cases use a different user id.

# The ones we use in our test system
UserId	gnats
GroupId	gn


# We enable the GET method in our test system
Enable GET
# In our system we turn on the IdentityCheck configuration directive
# to find out the remote login name of the owner of the client socket
IdentityCheck on

#
#	Logging; if you want logging uncomment these lines and specify
#	locations for your access and error logs

# Access and error logs locations in our test system
AccessLog	/oloc/1g/newgnats/www/log/httpd-log
ErrorLog	/oloc/1g/newgnats/www/log/httpd-errors

LogFormat	Common
LogTime		LocalTime

#
#	User-supported directories under ~/public_html
#
UserDir	public_html

# uncomment the following lines and put your own settings if you want 
# to protect CGI scripts

#This is the protection we use
#Protection PROT-SETUP1 {
#	UserId		gnats 
#	GroupId		gn
#	ServerId	GNATS-www-test_server
#	AuthType	Basic
#	PasswdFile	/oloc/1g/newgnats/www/config/pwfile
#	GetMask		All@(127.0.0.1, 128.141.*.*) 
	}

#Protect /edit-*		PROT-SETUP1
#Protect /cgi-bin/edit_pr.pl	PROT-SETUP1

#
# GNATS Interface
#
# You must use all the mappings we use without changes,
# except the last one, which you must replace by your own
 
Map	/gnats		/htbin/wwwgnats.pl
Map	/query-pr	/htbin/query-pr*
Map	/gnats-*	/htbin/wwwgnats.pl/*
Map 	/gnats/*	/htbin/wwwgnats.pl/*
Map	/gnats_home/*	/htbin/gnats_home.pl/*
Map	/edit-*		/htbin/edit_pr.pl/*
Map	/file*		/oloc/1g/newgnats/www/Web*

#
#       URL translation rules; If your documents are under /local/Web
#       then this single rule does the job:
#
# The translation rule in our test system
Pass                    /oloc/1g/newgnats/www/Web*


#
#       Scripts; URLs starting with /cgi-bin/ will be understood as
#       script calls in the directory /your/script/directory
#
 
# The mapping we use in our test system
Exec    /htbin/*        /oloc/1g/newgnats/www/cgi-bin/*
