From: Anupama of Greenstone Team
Date: Tue Dec 2 12:16:34 2008
Subject: [greenstone-users] Error Apache
In reply to: 4409126a0812010906x37a2de21w310b003d2b8e9a3f-mail-gmail-com

Hi Thao Thao,

Could you try out the following:
1. At present, your httpd.conf file has your ServerName set to contain
both the host and port as follows:
ServerName localhost:8080

You have specified the portnumber separately already, which is correct.
But your ServerName should not contain the portnumber. Therefore, can
you set the ServerName entry in your httpd.conf to just localhost (or,
alternatively, to the name of your machine):
ServerName localhost

2. Stop and start your apache server again.
Then first try visiting http://localhost:8080/gsdl/cgi-bin/library.exe
and if that didn't work, try visiting
http://localhost:8080/gsdl/cgi-bin/library
(without the .exe extension)

Tell us if you still have any difficulties.
Regards,
Anupama


Thao Thao wrote:
> Hi everybody!
> I installed Apache2.2.9 ang Greenstone 2.72(Web Library). Content
> httpd.conf:
> ---------------------------------------------------------------------------------------------------------------------------
> #
> # server as "C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/foo.log".
> #
> #
> # ServerRoot: The top of the directory tree under which the server's
> # configuration, error, and log files are kept.
> #
> # Do not add a slash at the end of the directory path. If you point
> # ServerRoot at a non-local disk, be sure to point the LockFile directive
> # at a local disk. If you wish to share the same ServerRoot for multiple
> # httpd daemons, you will need to change at least LockFile and PidFile.
> #
> ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
>
> #
> #Listen 12.34.56.78:80 <http://12.34.56.78:80>
> Listen 8080
> #
> <IfModule !mpm\_netware\_module>
> <IfModule !mpm\_winnt\_module>
> #
> #
> User daemon
> Group daemon
> </IfModule>
> </IfModule>
> # 'Main' server configuration
> #
> # The directives in this section set up the values used by the 'main'
> # server, which responds to any requests that aren't handled by a
> # <VirtualHost> definition. These values also provide defaults for
> # any <VirtualHost> containers you may define later in the file.
> #
> # All of these directives may appear inside <VirtualHost> containers,
> # in which case these default settings will be overridden for the
> # virtual host being defined.
> #
> # ServerAdmin: Your address, where problems with the server should be
> # e-mailed. This address appears on some server-generated pages, such
> # as error documents. e.g. admin@your-domain.com
> <mailto:[email protected]>
> #
> ServerAdmin [email protected] <mailto:[email protected]>
>
> #
> # ServerName gives the name and port that the server uses to identify
> itself.
> # This can often be determined automatically, but we recommend you specify
> # it explicitly to prevent problems during startup.
> #
> # If your host doesn't have a registered DNS name, enter its IP address
> here.
> #
> ServerName localhost:8080
>
> #
> # 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 "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
>
> #
> # 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).
> #
> # First, we configure the "default" to be a very restrictive set of
> # features.
> #
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> </Directory>
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
> #
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
> MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important. Please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#options
> # for more information.
> #
> Options Indexes FollowSymLinks
> #
>
> #
> AllowOverride None
>
> #
> # Controls who can get stuff from this server.
> #
> Order allow,deny
> Allow from all
> </Directory>
> #
> # DirectoryIndex: sets the file that Apache will serve if a directory
> # is requested.
> #
> <IfModule dir\_module>
> DirectoryIndex index.html
> </IfModule>
> #
> #
> <FilesMatch "^\\.ht">
> Order allow,deny
> Deny from all
> Satisfy All
> </FilesMatch>
>
> #
> # ErrorLog: The location of the error log file.
> # If you do not specify an ErrorLog directive within a <VirtualHost>
> # container, error messages relating to that virtual host will be
> # logged here. If you *do* define an error logfile for a <VirtualHost>
> # container, that host's errors will be logged there and not here.
> #
> ErrorLog "logs/error.log"
> #
> #
> LogLevel warn
> <IfModule log\_config\_module>
>
> LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\"
> \\"%{User-Agent}i\\"" combined
> LogFormat "%h %l %u %t \\"%r\\" %>s %b" common
>
> <IfModule logio\_module>
> # You need to enable mod\_logio.c to use %I and %O
> LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\"
> \\"%{User-Agent}i\\" %I %O" combinedio
> </IfModule>
>
> CustomLog "logs/access.log" common
>
> </IfModule>
>
> <IfModule alias\_module>
> #
> # Redirect: Allows you to tell clients about documents that used to
> # exist in your server's namespace, but do not anymore. The client
> # will make a new request for the document at its new location.
> # Example:
> # Redirect permanent /foo http://localhost/bar
>
> #
> # Alias: Maps web paths into filesystem paths and is used to
> # access content that does not live under the DocumentRoot.
> # Example:
> # Alias /webpath /full/filesystem/path
> #
> # If you include a trailing / on /webpath then the server will
> # require it to be present in the URL. You will also likely
> # need to provide a <Directory> section to allow access to
> # the filesystem path.
>
> #
> # ScriptAlias: This controls which directories contain server scripts.
> # ScriptAliases are essentially the same as Aliases, except that
> # documents in the target directory are treated as applications and
> # run by the server when requested rather than as documents sent to the
> # client. The same rules about trailing "/" apply to ScriptAlias
> # directives as to Alias.
> #
> ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software
> Foundation/Apache2.2/cgi-bin/"
>
> </IfModule>
>
> <IfModule cgid\_module>
> #
> # ScriptSock: On threaded servers, designate the path to the UNIX
> # socket used to communicate with the CGI daemon of mod\_cgid.
> #
> #Scriptsock logs/cgisock
> </IfModule>
>
> #
> # "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should
> be changed to whatever your ScriptAliased
> # CGI directory exists, if you have that configured.
> #
> <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
> AllowOverride None
> Options None
> Order allow,deny
> Allow from all
> </Directory>
>
> #
> #
> DefaultType text/plain
>
> <IfModule mime\_module>
> #
> # AddHandler allows you to map certain file extensions to "handlers":
> # actions unrelated to filetype. These can be either built into the
> server
> # or added with the Action directive (see below)
> #
> # To use CGI scripts outside of ScriptAliased directories:
> # (You will also need to add "ExecCGI" to the "Options" directive.)
> #
> #AddHandler cgi-script .cgi
>
> # For type maps (negotiated resources):
> #AddHandler type-map var
>
> #
> # Filters allow you to process content before it is sent to the client.
> #
> # To parse .shtml files for server-side includes (SSI):
> # (You will also need to add "Includes" to the "Options" directive.)
> #
> #AddType text/html .shtml
> #AddOutputFilter INCLUDES .shtml
> </IfModule>
>
> #
> # Note: The following must must be present to support
> # starting without SSL on platforms with no /dev/random equivalent
> # but a statically compiled-in mod\_ssl.
> #
> <IfModule ssl\_module>
> SSLRandomSeed startup builtin
> SSLRandomSeed connect builtin
> </IfModule>
> # Setting up the Apache webserver to work with Greenstone2
> ScriptAlias /gsdl/cgi-bin/ "C:/Program Files/Greenstone/cgi-bin"
> <Directory "C:/Program Files/Greenstone/cgi-bin">
> Options None
> AllowOverride None
> </Directory>
>
> Alias /gsdl/ "C:/Program Files/Greenstone"
> <Directory "C:/Program Files/Greenstone">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> -------------------------------------------------------------------------------------------------------------------------------------
> Content gsdlsite.cfg:
> # points to the GSDLHOME directory
> gsdlhome "C:\\Program Files\\Greenstone"
>
> # this is the http address of GSDLHOME
> # if your webservers DocumentRoot is set to $GSDLHOME
> # then httpprefix can remain commented out
> httpprefix /gsdl
>
> # this is the http address of the directory which
> # contains the images for the interface.
> # if your webservers DocumentRoot is set to $GSDLHOME
> # then httpimg will be /images
> httpimg /gsdl/images
> ------------------------------------------------------------------------------------------------------------
> When I visit http://localhost:8080/gsdl/cgi-bin/library.exe, display error:
>
>
> Not Found
>
> The requested URL /gsdl/cgi-bin/library.exe was not found on this server.
>
> If you know correct this error, you show me. Thank you very much.
>
>
>
>
> ------------------------------------------------------------------------
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
> greenstone-users mailing list
> [email protected]
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users