Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Browsing A Folder With Apache
post May 11 2004, 12:44 AM
Post #1

Its GNU/

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828

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?

--Jim Lester

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
+Quote Post
post May 11 2004, 03:21 AM
Post #2

Whats this Lie-nix Thing?

Group: Members
Posts: 12
Joined: 5-May 04
Member No.: 2,890

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.
Go to the top of the page
+Quote Post
post May 11 2004, 05:08 AM
Post #3

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

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:
<Directory "/var/www/html/files">
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all

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.

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 24th June 2018 - 01:47 PM