Find the answer to your Linux question:
Results 1 to 3 of 3
What file do I add the DirectoryIndex directive in for my vhosts. I have tried adding it to my apache2.conf file and my sites-enabled file. Neither work. Any ideas?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    84

    FIXED: Apache2 Vhosts DirectoryIndex config help


    What file do I add the DirectoryIndex directive in for my vhosts. I have tried adding it to my apache2.conf file and my sites-enabled file. Neither work. Any ideas?

  2. #2
    Just Joined!
    Join Date
    Oct 2005
    Posts
    10
    Add it like this:

    <VirtualHost *:80>
    ServerName somewhere.com
    ServerAdmin webmaster at somewhere.com
    DocumentRoot /var/www/cvs
    DirectoryIndex index.php index.cgi
    </VirtualHost>

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    84
    Got it working, just had to edit the redirect -mismatch clause in my config. Thank for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •