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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.