• Hi Everyone,

    I’m new to WordPress and looking thru the internet I have come upon various how-to guides. One of which suggests adding this to the apache virtual host file –

    <Directory /var/www/wordpress/>
    Options Indexes FollowSymLinks
    AllowOverride All
    DirectoryIndex index.php
    Order allow,deny
    Allow from all
    </Directory>
    <Directory> /var/www/wordpress/wp-content>
    Options FollowSymLinks
    Order allow,deny
    Allow from all

    What does this do and is it needed?

    Thanks,

Viewing 1 replies (of 1 total)
  • What does this do

    Taht tells the Apache server that the directory that’s specified allows index views (where you see the files in a folder if no default file is available). If you used that you’d need to change the folder locations from /var/www/wordpress/ to where ever your sites folders are.

    is it needed?

    Most times, no. If your server uses cPanel or something else similar for management, then all of that will be added automatically as it’s needed. You shouldn’t need to do anything else, and you’d probably break something if you did. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Linux Virtual Host Question’ is closed to new replies.