Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-03-2008, 11:29 PM   #1
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Configure Url to hide directory in apache

Hallo all,

Am abit stuck in trying to solve the following issue: I have a folder containing my website in /opt/lampp/htdocs. Now when i access the site, via the ip address i get the following:


However, i want do not to show the folder that has the contents. Instead i want to just reveal my index.php.

How do i configure apache to do this.

All help much appreciated
Old 03-03-2008, 11:36 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Add "-Index" (turn indexing OFF) to your <Directory> section in httpd.conf

You can also use <Directory> to cause the name typed in to the URL to be something completely different from the actual directory name on your hard disk.

Here's a link that might help:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure the URL in Apache for MediaWiki? cucolin@ Linux - Server 4 03-05-2012 05:41 AM
How to hide content of /home directory? krivenok Linux - Security 5 09-14-2006 09:57 PM
apache: url to alias directory w/o '/' psychobyte Linux - Networking 2 06-08-2006 02:53 PM
Apache directory preceding domain in url MasterC Linux - Networking 9 03-14-2005 06:32 AM
Fully hide directory from share Worstje Linux - Software 1 09-18-2004 11:09 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration