Webserver "main" directory configuration

Discussion in 'General' started by PiotrZiemniak, Jun 2, 2015.

  1. PiotrZiemniak

    PiotrZiemniak New Member

    Hi guys,
    I am running ISPconfig on my dedicated server for quite a long time, with 4 sites hosted on it, but only recently I found that when I enter my dedicated server IP address in the browser (not domain, but pure numeric IP address of my server), I can see the directories created by ISPconfig, (just as the standard webpage generated by Apache when there's no "index.html" file):

    /apps
    /ispconfig
    /webalizer

    The most confusing thing was that Webalizer stats were visible externally!

    Where in ISPConfig can I set up the "root" directory for my server, so that I can turn off Webalizer for it?

    Cheers,
    PZ
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There must be either a global "Options +Indexes" set in your apache config and / or the default vhost is missing. Which Linux distribution do you use? And your ISPConfig version is 3.0.5.4p6?

    The webalizer directory is not from ispconfig and it is not used by ispconfig for the website statistics, so just disable the global webalizer cronjob and then remove the directory.
     
  3. PiotrZiemniak

    PiotrZiemniak New Member

    I am using Debian Wheezy + ISPConfig 3.0.5.4p6.
    Regarding virtual hosts, pardon my lame question: Upon restarting Apache, I am getting this console messages:

    [....] Restarting web server: apache2[Tue Jun 02 12:59:55 2015] [warn] NameVirtualHost 198.100.xxx.xxx:80 has no VirtualHosts
    [Tue Jun 02 12:59:55 2015] [warn] NameVirtualHost 198.100.xxx.xxx:443 has no VirtualHosts
    [Tue Jun 02 12:59:55 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
    ... waiting [Tue Jun 02 12:59:56 2015] [warn] NameVirtualHost 198.100.xxx.xxx:80 has no VirtualHosts
    [Tue Jun 02 12:59:56 2015] [warn] NameVirtualHost 198.100.xxx.xxx:443 has no VirtualHosts
    [Tue Jun 02 12:59:56 2015] [warn] NameVirtualHost *:443 has no VirtualHosts

    How to configure the default vhost? A step-by-step howto will be appreciated!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    run:

    a2ensite default

    and restart apache. Then check if the issue still appears.
     
  5. PiotrZiemniak

    PiotrZiemniak New Member

    After I entered "a2ensite default", I got a message that "Site default already enabled". Restarting Apache shows the same errors.
     

Share This Page