According to Daniel WELLS: > While I'm not really a newbie, I'm not really an expert either (I know > just enough to be dangerous). That said, I'm getting a little confused. > To use "apacheconf" you can't edit the httpd.conf file manually. > Hence my comment regarding foregoing it. The httpd.conf file when I > look at it has "ScriptAlias" pointing to the wrong directory.
That ScriptAlias is at the top level, for a non-virtual host, i.e. your main web site location, and it's pointing at the usual spot on Red Hat 7 systems for the cgi-bin directory. You seem to want to configure a virtual host, so it's not any use to change the top-level ScriptAlias. > I cannot > see a way to redirect it using "apacheconf." I have been unable to > find enough documentation on "apacheconf" to help me figure it out. Well, that may be enough reason to drop it, but before you do, if you'd like to keep using it, try the following, below in the VirtualHost section... > Experpts from current httpd.conf > > Alias /icons/ "/var/www/icons/" > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" > # > # ScriptAlias: This controls which directories contain server scripts. > # ScriptAliases are essentially the same as Aliases, except that > # documents in the realname 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/ "/var/www/cgi-bin/" > > # > # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased > # CGI directory exists, if you have that configured. > # > <Directory "/var/www/cgi-bin"> > AllowOverride None > Options ExecCGI > Order allow,deny > Allow from all > </Directory> > > # Virtual host search.mhtn.com > <VirtualHost 192.168.1.6> > DocumentRoot /opt/www/ > > ServerAdmin [EMAIL PROTECTED] > ServerName search.mhtn.com > > ServerAlias search > ServerAlias find OK, however you entered these two ServerAlias directives above, this is where you should be defining one for your new cgi-bin for this virtual host. However, you'll have to assign a value to it - the directory name for your cgi-bin. > <Directory "/opt/www/"> > AllowOverride none > > > > </Directory> > > <Directory "/opt/www/cgi-bin/"> > AllowOverride none > > > > </Directory> > > </VirtualHost> > > Adding in the "ScriptAlias" statement in the .htaccess file did not > seem to work either. > > I am going to try to manually edit the httpd.conf file and see if > that fixes the problem. Is all the white space necessary in that file? No, you can't generally put Alias or ScriptAlias directives in .htaccess. The white space is mostly just tabs that show the level of indentation in each configuration block, so I wouldn't fight it. All the blank lines are likely a result of apacheconf, and can probably be deleted, although they may get reinserted again if you do more editing with apacheconf. If you do give up on apacheconf, at least you seem to have a reasonable starting point for your config file, which you can tweak by hand. > >>> Gilles Detillieux <[EMAIL PROTECTED]> 05/22/02 12:53PM >>> > According to Daniel WELLS: > > I have installed ht://Dig and it tests fine on the command line. > > Unfortunately, I am unable to get it to perform through a browser. > > From what I read and surmised, it is an Apache configuration problem on > > my part, but I am unsure how to address it. I am running Apache 1.3.20 > > on a RH 7.2 box. Apacheconf 0.8.1-1 was used to configure several > > virtual servers. Each virtual server was set to allow CGI (ExecCGI) > > but I get a message that the "URL /cgi-bin/htsearch/ was not found". > > I tried setting up a ".htaccess" file in my "search" virtual server > > folders allowing CGI to run (I think?) > > > > <Directory /opt/www/cgi-bin/> > > AllowOverride Options > > Options +ExecCGI > > </directory> > > > > This hasn't worked either. I am beginning to think that I'm going to > > have to bite the bullet and forego apacheconf altogether and manually > > edit the "httpd.conf" file. > > You need to add a ScriptAlias directive for the cgi-bin directory. > (See http://www.htdig.org/FAQ.html#q5.19) > > E.g.: > > ScriptAlias /cgi-bin "/opt/www/cgi-bin" > <Directory /opt/www/cgi-bin/> > AllowOverride Options > Options +ExecCGI > </Directory> > > I'm not familiar with apacheconf, but I'd imagine there's a way of doing > this in there. -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

