All pages all default to /var/www dir listing

Discussion in 'Installation/Configuration' started by dtrotter, Oct 5, 2007.

  1. dtrotter

    dtrotter New Member

    ISPConfig has been running great for a while now. I have multiple domains on there. I tried to manually add a subdomain to Apache (blah.domain.com). Something I did screwed stuff up. I finally got apache running again, but now of my vhosts are working now. Any one I go to just lists the contents of /var/www/.

    I have looked and looked, and I just can't seem to find where things are messed up!

    Thanks guys/gals!

    Devin
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please make sure that your Vhosts_ispconfig.conf is included at the end of your main Apache configuration.
     
  3. dtrotter

    dtrotter New Member

    Here is the ISPConfig section of my apache2.conf file. The vhost file is included in there. What else could it be?

    Code:
    ###############ispconfig_log###############
    LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
    CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    
    <Directory /var/www/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /var/www/*/user/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /var/www/*/cgi-bin>
        Options ExecCGI -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
    
    
    These two lines are in the apache2.conf file as well. Should the second line be commented out? Isnt that what the Vhosts_ispconfig.conf file is for?

    Code:
    # Include the virtual host configurations:
    Include /etc/apache2/sites-enabled/[^.#]*
    
    Thanks!
     
    Last edited: Oct 6, 2007
  4. falko

    falko Super Moderator ISPConfig Developer

    You can try to comment that line out.
     
  5. dtrotter

    dtrotter New Member

    I tried that. I get a page cannot be displayed error when I do that...


    Devin
     
  6. dtrotter

    dtrotter New Member

    Any other ideas? I really dont want to reinstall everything...

    Thanks!

    D
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Are you using a standard Apache configuration, or did oyu modify it manually? If the latter, what did you modify?
     
  8. dtrotter

    dtrotter New Member

    Actually an assistant admin who is no longer here had made some changes, but I am really not sure what was changed. Is it possible to rebuild apache without loosing all my virtual hosted domains and sites or without reinstall ispconfig as a whole? Maybe stop ispconfig, stop apache, remove apache and associated files, reinstall apache, move the sites back to the /var/www location and then restart ispconfig?

    Devin
     

Share This Page