Web Hosting How-Tos

  Home arrow Web Hosting How-Tos arrow Page 4 - Configuring Apache 2.0 -- Beginning
Web Hosting Articles  
Web Hosting FAQs  
Web Hosting How-Tos  
Web Hosting News  
Web Hosting Reviews  
Web Hosting Security  
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
ASP Web Hosting  
ASP.NET Web Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Virtual Private Servers 
Windows Web Hosting
 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB HOSTING HOW-TOS

Configuring Apache 2.0 -- Beginning
By: Michael Swanson
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 15
    2004-12-29

    Table of Contents:
  • Configuring Apache 2.0 -- Beginning
  • Configuration File
  • Basic Configuration Options
  • Directory Setup
  • Index Options

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     

    SEARCH WEB HOSTERS

    TOOLS YOU CAN USE

    advertisement

    Configuring Apache 2.0 -- Beginning - Directory Setup


    (Page 4 of 5 )


     
     As I mentioned above, setting up Apache requires you to define your own virtual file system that will be exposed on the Web. This is the most important part for maintaining security on your Web server. You use the <Directory> and </Directory> tags to delineate the different permissible actions that each directory has on the server. For instance, to configure options for the directory /www/PubDocs you would use the tag <Directory “/www/PubDocs”> and </Directory>. You must set up directory tags to define the options for all the directories on your server. You should set up at least two directory tags. One is for the actual root “/” and another is for the directory you have specified in the “DocumentRoot” directive. 

    Each directory tag has an “Options” component. This is what determines the different capabilities assigned to each directory. The allowed arguments to the Options line are: “Indexes”; “FollowSymLinks”; “SymLinksIfOwnerMatch”; “MultiViews”; “ExecCGI”; “Includes”; “IncludesNoExec”; “None”; and “All.” Most of these are outside the purview of this article since they deal with relatively complex parts of server operation; however, several are relatively simple. 

    The “Indexes” option tells the server to generate an index page for a directory if none exists. This is useful if you wish to set up a directory where people can go to download all the files in a directory without trying to maintain an HTML file yourself that links to all the files in that directory. Remember, this will index all the files in a directory, so everything will be easily accessible. The options “ExecCGI”, “Includes”, and “IncludesNoExec” are associated with different types of server side scripting. “MultiViews” allows the server to attempt to decide which page is best for a specific browser. This is often used for pages written in multiple languages, and allows the server to determine which version is best suited to a specific client.

    Several other lines are useful within directory tags.  “AllowOverride” tells whether or not authenticated users are allowed different access to a directory. This should generally be set to “None” and should always be set to “None” on the root directory.

    Along with the <Directory> tag, there is also a <Files> tag used for configuring access to specific files or groups of files. Most likely, you won’t ever have to deal with this, but it is useful to know it exists.

    More Web Hosting How-Tos Articles
    More By Michael Swanson


       · Thanks Michael, very useful concise yet comprehensive enough to get me started and...
     

    WEB HOSTING HOW-TOS ARTICLES

    - Facebook Timeline Tips and Tricks
    - How to Keep Up with Facebook`s Changes
    - Wi-Fi Network Security Tips
    - Tips for Safe Online Holiday Shopping
    - Facebook Privacy: Keeping Up with the Const...
    - Tips for Facebook Privacy
    - How to Cover Your Tracks on the Web
    - SSH Keys for FileZilla and Putty in Cpanel
    - How to Create a Filezilla FTP User
    - How to Install FileZilla Server
    - How to Install FileZilla Client
    - How to Forward a GoDaddy Domain
    - Rogue Internet Security Scammers Costing Con...
    - Optimizing Website Server Bandwidth
    - How to Choose a High Volume Host




    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap