Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6211599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:22:03+00:00 2026-05-24T06:22:03+00:00

I noticed that the default sites-available file (/etc/apache2/sites-available/default) contained many directory tags with various

  • 0

I noticed that the default sites-available file (/etc/apache2/sites-available/default) contained many “directory” tags with various options.

<Directory />, <Directory /var/www/>, <Directory "/usr/lib/cgi-bin">, and <Directory "/usr/share/doc/">

Do I need any of those, or can I safely remove them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:22:04+00:00Added an answer on May 24, 2026 at 6:22 am

    Don’t start adjusting the default site, it will just become a mess and you won’t be able to figure out what directive does what.
    I would recommend you write your own virtual host configuration, this way you actually know what your site does. Here is a little bare bones configuration to get you started.

    <VirtualHost *:80>
        ServerName www.mywebsite.com
        DocumentRoot /home/www/public_html/
        <Directory /home/www/public_html/>
            Options None
            Order deny,allow
            Allow from all
        </Directory>
    </VirtualHost>
    

    Just put it in sites-available and then run a2ensite mywebsite (mywebsite being the filename of the vhost configuration), then reload the server configuration with /etc/init.d/apache2 reload.
    An explanation for all the directives I used can be found in the apache documentation (I am assuming you run version 2.2).

    Oh, and of course you need to disable the default site (a2dissite default) if the ServerNames are conflicting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed that the MS ajax framework touches the action of the default form
I noticed that I can't combine --traditional options with the other one letter other
on many sites, such as http://www.clearleft.com , you'll notice that when the links are
I noticed that by default, all updates in the django admin site are done
I have noticed that the default for filling the bars in a histogram created
I noticed that operator.itemgetter objects don't define __eq__ , and so their comparison defaults
I noticed that the <td align=center> code works differently on the MediaWiki.org page and
I noticed that there are two sets of Hadoop configuration parameters: one with mapred.*
I noticed that Clojure (1.4) seems to be happy to consider vectors equal to
I noticed that IE 9 does not support application cache. How can I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.