Jump to content

Disallowing access to parts of directory


MemphiS

Recommended Posts

As scrupul0us said, you need to find your httpd.conf. You said you could not find it? Did you do a "search" or a "Find Files"?

 

If its windows look in:

C:\Program Files\Apache Group\Apache2\conf

 

If its linux, look in:

/etc/apache2/

 

When you get httpd.conf, put the code, scrupul0us gave you.

 

-steve

Hummm.... if there is no apache in /etc/ it mustnt be a typical install.

Check in /usr/apache or /usr/local/apache or /services/apache

 

Now specifically, it is not a security risk IMO that cgi-sys is there. Are the cgi files listed when you go to http://mysite.com/cgi-sys/scgiwrap/ ? That would be bad. But if there is no listing of files, it'd be fine.

 

Anyways, if you cant find httpd.conf or apache2.conf (which you should be able), here is a messy hack which may work:

 

In your web root, /var/www/

create a .htaccess file with this in it:

Redirect 301 "/cgi-sys/" http://mysite.com/

 

-steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.