Help - Search - Members - Calendar
Full Version: Browsing A Folder With Apache
Linuxhelp > Support > Technical Support
Jim
I want to create folder that I can put docs in to download other places on my apache server other than just the root folder where the index.htm is. I tried just mkdir but it wont let me browse it from other computer, I can get the files out if I type it in, but I can't browse. How to I make a directory that I can browse?
petterg
In apache.conf (or httpd.conf) is a section called <Directory [path of your rootdir]>. There you edit the Options line. See the apache manual for avaiable options.
hughesjr
What you want to do is add the option called Indexes to that directory. (I wouldn't add it to the whole site).

So if you created a directory called files in /var/www/html, and you wanted to allow Indexes in that directory, you would go to the httpd.conf file, find the directory entry for /var/www/html, copy it, and paste it as a new entry under the /var/www/html section and edit it like this:
CODE
<Directory "/var/www/html/files">
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>


I am not recommending those options specifically, I just took the default info for an install in RedHat (Options FollowSymLinks) and added Indexes as an example.

If you are using apache 2, see this link about all Options. Options are one of the most important settings in Apache web server implementation...and using the wrong ones can greatly reduce the site security.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.