Aliasing cgi-bin directory to CGI directory

Aliasing cgi-bin directory to CGI directory

Post by Richard Moor » Wed, 08 Jul 1998 04:00:00



My company doesn't use a directory called 'cgi-bin' in which scripts are
placed and run. We use a directory called 'CGI'. I have been trying to
alias in srm.conf and access.conf where if cgi-bin is being accessed it
goes to CGI. But I am not having any luck. below is my code so far on
this subject.

srm.conf

ScriptAlias cgi-bin/ cgi-bin/
ScriptAlias cgi-bin/ /export/newsoftware/apache_1.3.0/cgi-bin
ScriptAlias cgi-bin/ /export/htdocs/RACESEARCH.COM/CGI
ScriptAlias cgi-bin/ /export/htdocs/RACESEARCH.COM/cgi-bin
#Alias /export/htdocs/RACESEARCH.COM/cgi-bin
/export/htdocs/RACESEARCH.COM/CGI
ScriptAlias cgi-bin/ /export/ttdocs/RACESEARCH.COM/CGI
ScriptAlias cgi-bin/ /export/ttdocs/RACESEARCH.COM/cgi-bin
#Alias /export/ttdocs/RACESEARCH.COM/cgi-bin
/export/ttdocs/RACESEARCH.COM/CGI

access.conf

<Directory /export/ttdocs/RACESEARCH.COM/CGI>
SetHandler cgi-script
</Directory>

<Directory /export/ttdocs/RACESEARCH.COM/cgi-bin>
SetHandler cgi-script
</Directory>

<Directory /export/htdocs/RACESEARCH.COM/CGI>
SetHandler cgi-script
</Directory>

<Directory /export/htdocs/RACESEARCH.COM/cgi-bin>
SetHandler cgi-script
</Directory>

Please help.

Rich Moore

 
 
 

Aliasing cgi-bin directory to CGI directory

Post by Jim Jagiels » Thu, 09 Jul 1998 04:00:00




> My company doesn't use a directory called 'cgi-bin' in which scripts are
> placed and run. We use a directory called 'CGI'. I have been trying to
> alias in srm.conf and access.conf where if cgi-bin is being accessed it
> goes to CGI. But I am not having any luck. below is my code so far on
> this subject.

> srm.conf

> ScriptAlias cgi-bin/ cgi-bin/
> ScriptAlias cgi-bin/ /export/newsoftware/apache_1.3.0/cgi-bin
> ScriptAlias cgi-bin/ /export/htdocs/RACESEARCH.COM/CGI
> ScriptAlias cgi-bin/ /export/htdocs/RACESEARCH.COM/cgi-bin

Try it as:

  ScriptAlias /cgi-bin/ /export/htdocs/RACESEARCH.COM/CGI

--

jaguNET Access Services  |  http://www.jaguNET.com/
            "Not the Craw... the CRAW!"

 
 
 

Aliasing cgi-bin directory to CGI directory

Post by Guy Lip » Thu, 23 Jul 1998 04:00:00


try the following to help solve your cgi-bin issue:

- srm.conf

# Format: ScriptAlias fakename realname
ScriptAlias /cgi-bin/ /export/ttdocs/RACESEARCH.COM/CGI/

- access.conf
# should be changed to your ScriptAlias CGI directory
<Directory /export/ttdocs/RACESEARCH.COM/CGI>
AllowOverride None
Options None
</Directory>

if you want symbolic links within your cgi directory you will need to
replace None with FollowSymLinks in reference to Options.

glipof

 
 
 

1. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

I've been seeing a number of attacks of this sort recently
from various sites in the http logs.  The time correlation
between the logs on various hosts suggests that the attacker
was scanning sequentially upward in IP addresses.  Since all
tcp and udp packets to ports below 1024 except for http,
smtp, and ident are filtered out for most, including the
attacking, sites, I'm not seeing anything else in the logs.

209.61.73.47 - - [04/Jul/1998:07:19:27 -0500] "GET /cgi-bin/phf" 404 -
209.61.73.47 - - [04/Jul/1998:07:19:28 -0500] "GET /cgi-bin/test-cgi" 404 -
209.61.73.47 - - [04/Jul/1998:07:19:28 -0500] "GET /cgi-bin/handler" 404 -

Is this a signature of some known attackware?  If so, what
other attacks accompany these http probes?

--

2. Unstable horizontal synchro problem

3. Can't get CGI to run in local cgi-bin directory

4. How to show which terminal you are logged into?

5. Running cgi scripts outside /cgi-bin directory

6. About Mach64 and X for RedHat 5.1

7. apache cgi-bin directory alias

8. Alpha clones

9. cgi-bin/view-source?cgi-bin/view-source

10. Creating user cgi-bin directories

11. directory settings for www_docs and cgi-bin

12. Apache VHost CGI-BIN Directory

13. cgi-bin and www directories