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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |