The MU forums have moved to WordPress.org

httpd.conf and .htaccess Directory questions (5 posts)

  1. greggh3
    Member
    Posted 15 years ago #

    Is it possible to put the Directory stuff...


    <Directory />
    AllowOverride FileInfo Options
    </Directory>

    ...in the .htaccess file for the site rather than conf file? We are running our own server, but are running other things on it as well and do not want to do this server wide, but rather site wide.

    Reason for the question is I have setup wpMU on my local machine using Xampp but had to add the Directory stuff to the httpd.conf file. without it I get a 404 on the subdirectory blogs created.

  2. SteveAtty
    Member
    Posted 15 years ago #

    You can put directory configuration in the httpd.conf for specific directories. If you are running multiple servers, certainly using Apache, you simply put the relevant directory configuration options in the config section for that virtual server. Some people would argue that putting all you config in your httpd.conf file makes the system faster as the httpd.conf is read once at start up rather than in the .htaccess file which is read repeatedly

  3. greggh3
    Member
    Posted 15 years ago #

    so taht would be done like

    <Directory /var/www/html/path>

    </Directory>

    ??

  4. SteveAtty
    Member
    Posted 15 years ago #

    yes that's just how you'd do it

  5. greggh3
    Member
    Posted 15 years ago #

    thanks steve!

About this Topic