From: GARY B PALMER Date: 2002-05-26T03:42:29+09:00 Subject: Ruby/CGI/Apache/MS Windows - Err 403 This is a multi-part message in MIME format. --------------0E5A9416F07A9EBF0C996A8D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have posted an early version this to comp.infosystems.www.servers.ms-windows newsgroup, and I understand it is bad form to post to more than one group, but I am impatient to see something running. I am using Apache 2.0.36 on Windows 98 and trying to run Ruby CGI scripts. I get the following message: "Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. Error 403" I have tried many variations and perused many web pages on Windows 98, Apache and Ruby. I have no trouble running my ruby scripts from a DOS window, nor in displaying web pages using Apache, and in general I understand pathways and the idea behind the Apache httpd.conf file. My DocumentRoot is "C:/www". My web index.html page is in C:/www/ and looks as follows: This is "index.html" in folder www
The hello.rbw script runs fine from the command line in a DOS window (using a hello.bat file in the same folder to provide the connection to the Ruby binaries). Some relevant settings in my httpd.conf file are given below. Any clues that would help a this lay computer user set up his server for linguistic research would be appreciated. Thanks much, Gary Palmer Anthropology & ETS University of Nevada at Las Vegas ################################################################## # 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 Group/Apache2/htdocs" DocumentRoot "C:/www" Options +ExecCGI #I also tried adding ExecCGI to the options directive below. # # 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.0/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all SetHandler cgi-script # # UserDir: The name of the directory that is appended onto a user's home # directory if a ~user request is received. Be especially careful to use # proper, forward slashes here. # #UserDir "My Documents/My Website" UserDir "C:/www/scripts" AddHandler cgi-script .rbw #My SAMS manual drops the period from the file type, #so I tried that, too. # I added the following - GBP; don't really know if necessary or correct AddType application/x-httpd-cgi .rbw Action application/x-httpd-cgi "/ruby/bin/rubywin.exe" --------------0E5A9416F07A9EBF0C996A8D Content-Type: text/x-vcard; charset=us-ascii; name="gbp.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for GARY B PALMER Content-Disposition: attachment; filename="gbp.vcf" begin:vcard n:PALMER;GARY tel;work:702-895-3379 x-mozilla-html:FALSE url:http://anthro-ets.unlv.edu/palmerg/ org:UNIVERSITY OF NEVADA AT LAS VEGAS;ANTHROPOLOGY AND ETHNIC STUDIES adr:;;4505 MARYLAND PARKWAY;LAS VEGAS;NV;89154-5003;USA version:2.1 email;internet:gbp@unlv.edu title:PROFESSOR fn:GARY B PALMER end:vcard --------------0E5A9416F07A9EBF0C996A8D--