default/catchall virtualhost container

Discussion in 'Feature Requests' started by kevin186, Nov 24, 2010.

  1. kevin186

    kevin186 New Member

    Hi. Lets's say we have 3 websites created in ispconfig 3 :,, and If I deactivate, then all traffic coming for that site will be loaded with If I visit using just the ip address or the host, then all traffic goes to Obviously, the virtualhost files in /etc/httpd/conf/sites-enabled/ are being read alphabetically, and the first one is acting as a catch-all. I would like to be able to create a catch-all directory/site through the ispconfig 3 admin.

    Of course, I can just create my own virtualhost in httpd.conf, but it would be nice to do it through ispconfig.
  2. falko

    falko Super Moderator ISPConfig Developer

    I've added this feature request to our bugtracker.
  3. BorderAmigos

    BorderAmigos New Member

    Default traffic that doesn't go to a named site goes to /var/www (in Debian at least). This can be rerouted to whatever site using an .htaccess file in that directory. Sites in ISPConfig could just have a DEFAULT SITE checkbox that output the code for the file.

    Maybe using mod_alias. Something like...

    <IfModule mod_alias.c>
    RedirectMatch 301 ^/(.*)/$

Share This Page