directory structure

This is a discussion on directory structure within the Apache Web Server forums, part of the Web Server and Related Forums category; i have hosting on a company running apache I wanna know is it possible to stop people from viewing the ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2005
Christo
 
Posts: n/a
Default directory structure

i have hosting on a company running apache

I wanna know is it possible to stop people from viewing the directory
structure when they enter the domain name

domain.com/

i have no index page in the directory and it shows the directory structure,
i basically want it to show a normally OS generated 404 page, how can i do
this?

not sure if this is the right place, if not can anyone please give me a
group that might have the info i desire

Thanks

Christo


  #2 (permalink)  
Old 04-26-2005
Adam
 
Posts: n/a
Default Re: directory structure

In article <d4m85l$7k9$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com>
"Christo" <chris@ no spamming juststuff.co.uk> wrote:

>i have hosting on a company running apache
>
>I wanna know is it possible to stop people from viewing the directory
>structure when they enter the domain name
>
>domain.com/
>
>i have no index page in the directory and it shows the directory structure,


Add an .htaccess in the root folder for that domain and add this line in
ot.

options -indexes




>i basically want it to show a normally OS generated 404 page, how can i do
>this?
>



>not sure if this is the right place, if not can anyone please give me a
>group that might have the info i desire
>
>Thanks


http://httpd.apache.org/docs/misc/custom_errordocs.html

Has a good tutorial, although focusing on customized international
server error responses, but should give you a good starting point.

http://www.onlamp.com/pub/a/onlamp/2...avidsklar.html
Offers another tutorial, if you use PHP.

http://websiteowner.info/tutorials/s...acheerrors.asp

Offers the same with the use of .htaccess.

Good luck.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0