Apache: disable access to manuals

ee-gd
ee-gd used Ask the Experts™
on
What is the best way to disable access to manuals and docs URLs on my server?

Earlier today [our domain] followed by any of the ones below like /manual/platform/ebcdic.html did take me to that page and we do not want to serve those pages...

To block/hide these([our domain]/manual/platform/ebcdic.html) I disabled some of the active apache configs in /etc/httpd/conf.d/manual.conf
#AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"  
#<Directory "/var/www/manual">
#    Options Indexes
#    AllowOverride None
#    Order allow,deny
#    Allow from all
#</Directory>

Open in new window


Is this the best way? Have I missed anything!?
I no longer see the manual URLs, but would like to be sure that I have not missed anything...

ftp://hachiman.vidya.com/pub/apache/ - /manual/platform/ebcdic.html
http://apache.webthing.com/mod_proxy_html/ - /manual/urlmapping.html
http://apachetoday.com/news_story.php3?ltsn=2000-06-14-002-01-PS - /manual/env.html
http://apr.apache.org - /manual/install.html
http://apr.apache.org/ - /manual/glossary.html
http://bugs.apache.org/index/full/467 - /manual/misc/perf-tuning.html
http://cgi-spec.golux.com/ - /manual/glossary.html
http://cgiwrap.unixtools.org/ - /manual/misc/security_tips.html
http://dev.apache.org/ - /manual/platform/ebcdic.html
http://developer.novell.com/ndk/apache.htm - /manual/platform/netware.html
http://developer.novell.com/ndk/cldap.htm - /manual/platform/netware.html
http://developer.novell.com/ndk/cwpdk.htm - /manual/platform/netware.html
http://developer.novell.com/ndk/libc.htm - /manual/platform/netware.html
http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/Log_Analysis_Tools/ - /manual/logs.html
http://dmoz.org/Computers/Software/Internet/Site_Management/Log_analysis/ - /manual/logs.html
http://docx.webperf.org/ - /manual/developer/
http://hoohoo.ncsa.uiuc.edu/cgi/env.html - /manual/howto/cgi.html
http://hoohoo.ncsa.uiuc.edu/cgi/interface.html - /manual/howto/cgi.html
http://hoohoo.ncsa.uiuc.edu/cgi/overview.html - /manual/glossary.html
http://hpwww.ec-lyon.fr/~vincent/apache/mod_put.html - /manual/platform/ebcdic.html
http://httpd.apache.org/ - /manual/
http://httpd.apache.org/bug_report.html - /manual/platform/windows.html
http://httpd.apache.org/dev/verification.html - /manual/install.html
http://httpd.apache.org/docs-project/ - /manual/
http://httpd.apache.org/docs/ - /manual/
http://httpd.apache.org/docs/2.0/upgrading.html - /manual/upgrading.html
http://httpd.apache.org/docs/2.2/ - /manual/install.html
http://httpd.apache.org/docs/2.2/faq/ - /manual/faq/
http://httpd.apache.org/docs/2.2/suexec.html - /manual/suexec.html
http://httpd.apache.org/docs/misc/FAQ.html - /manual/faq/
http://httpd.apache.org/download.cgi - /manual/install.html
http://httpd.apache.org/lists.html - /manual/misc/security_tips.html
http://ietf.org/rfc/rfc2616.txt - /manual/glossary.html
http://jakarta.apache.org/tomcat/ - /manual/new_features_2_2.html
http://java.apache.org/ - /manual/platform/ebcdic.html
http://lxr.webperf.org/ - /manual/developer/
http://modules.apache.org/ - /manual/filter.html
http://online.securityfocus.com/bid/4876/info/ - /manual/misc/security_tips.html
http://ppewww.ph.gla.ac.uk/~flavell/www/lang-neg.html - /manual/content-negotiation.html
http://support.novell.com/misc/patlst.htm - /manual/platform/netware.html
http://threebit.net/tutorials/apache2_modules/tut1/tutorial1.html - /manual/developer/
http://threebit.net/tutorials/apache2_modules/tut2/tutorial2.html - /manual/developer/
http://web.golux.com/coar/cgi/ - /manual/howto/cgi.html
http://www.apache.org/ - /manual/
http://www.apache.org/dist/httpd/binaries/netware - /manual/platform/netware.html
http://www.apache.org/licenses/ - /manual/license.html
http://www.apache.org/licenses/LICENSE-2.0 - /manual/
http://www.apachetutor.org/ - /manual/developer/
http://www.apachetutor.org/dev/brigades - /manual/developer/
http://www.apachetutor.org/dev/config - /manual/developer/
http://www.apachetutor.org/dev/pools - /manual/developer/
http://www.apachetutor.org/dev/request - /manual/developer/
http://www.apachetutor.org/dev/reslist - /manual/developer/
http://www.boutell.com/cgic/ - /manual/howto/cgi.html
http://www.city-fashion.com - /
http://www.cococruz.co.uk - /
http://www.coliseumfashion.com - /
http://www.cpan.org/ - /manual/howto/cgi.html
http://www.cronolog.org/ - /manual/logs.html
http://www.emiliaanne.co.uk - /
http://www.eton-bridge.com - /
http://www.fabrice-fashion.com - /
http://www.funkyfred.info - /
http://www.gnu.org/ - /manual/install.html
http://www.gnu.org/software/gcc/gcc.html - /manual/install.html
http://www.google.com/search - /manual/
http://www.gzip.org/zlib/ - /manual/platform/netware.html
http://www.heavenbeach.co.uk - /
http://www.hwg.org/lists/hwg-servers/ - /manual/howto/cgi.html
http://www.ics.uci.edu/pub/ietf/http/draft-ietf-http-connection-00.txt - /manual/misc/perf-tuning.html
http://www.ietf.org/rfc/rfc2396.txt - /manual/glossary.html
http://www.ietf.org/rfc/rfc2817.txt - /manual/new_features_2_2.html
http://www.microsoft.com/downloads/release.asp?ReleaseID=32831 - /manual/platform/windows.html
http://www.microsoft.com/downloads/release.asp?ReleaseID=32832 - /manual/platform/windows.html
http://www.microsoft.com/windows95/downloads/contents/WUAdminTools/S_WUNetworkingTools/W95Sockets2/Default.asp - /manual/platform/windows.html
http://www.ntp.org - /manual/install.html
http://www.onlamp.com/pub/ct/38 - /manual/developer/
http://www.openssl.org/ - /manual/glossary.html
http://www.openssl.org/contrib/ - /manual/platform/netware.html
http://www.openssl.org/source/ - /manual/platform/netware.html
http://www.oskarlevinski.com - /
http://www.pcre.org/ - /manual/glossary.html
http://www.perl.com/CPAN - /manual/misc/rewriteguide.html
http://www.perl.org/ - /manual/install.html
http://www.php.net/ - /manual/platform/ebcdic.html
http://www.research.digital.com/wrl/techreports/abstracts/95.4.html - /manual/misc/perf-tuning.html
http://www.sextonsmith.com - /
http://www.siemens.de/servers/bs2osd/osdbc_us.htm - /manual/platform/ebcdic.html
http://www.spanisheyes-fashion.com - /
http://www.stanford.edu/~schemers/docs/lbnamed/lbnamed.html - /manual/misc/rewriteguide.html
http://www.tokohama.co.uk - /
http://www.w3.org/Daemon/ - /manual/platform/ebcdic.html
http://www.w3.org/Protocols/HTTP/Performance/Pipeline.html - /manual/misc/perf-tuning.html
http://www.w3.org/Protocols/rfc2616/rfc2616.txt - /manual/logs.html
http://www.webdav.org/ - /manual/mod/
news://developer-forums.novell.com/novell.devsup.webserver - /manual/platform/netware.html
news:comp.infosystems.www.authoring.cgi - /manual/howto/cgi.html

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
Unless you have a specific reason to have the manuals available on your server (any place not just /manual), the simplest solution is to just remove /var/www/manual and leave those sections of Apache config commented out (or deleted).
In other words, you did well.
Top Expert 2011
Commented:
To clarify on my original answer, deleting the directory from the filesystem is the simplest solution.  To make your configs clean you should then comment or remove the lines from the Apache config.  I can see how my original answer could be read as instructing you to do exactly what you did, but I was trying to emphasize the removal of the directory from the filesystem (or at least from DocumentRoot) as the solution.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial