ISPConfig Default Website

Discussion in 'General' started by FeraTechInc, Aug 28, 2012.

  1. FeraTechInc

    FeraTechInc ISPConfig Developer

    When we deactivate the one of our website. The user automatically gets redirected to one of our client sites.

    Is it possible to change this?

    I have tried creating a link named "0" and linked it to our main company site. We placed it in /var/www and /var/www/WWW directories without success.

    Is there any way to change the default site which shows up when a client tries to access a site which doesn't exist or is disabled?
  2. till

    till Super Moderator

    Apache shows the first site in alphabetic order that exists for a specific IP address if no site matches. So if you want to create a default site, you just have to ensure that it is the first one in alphabetic order.

    Create a new site in ispconfig and use as domain name e.g.:


    The domain name does not have to exist, it just have to be the first one to become the default site.
  3. FeraTechInc

    FeraTechInc ISPConfig Developer

    This did not work.

    I also tried doing a redirect for the website that was showing up and the redirect does not work eigther...
  4. till

    till Super Moderator

    Then you most likely did not select the correct IP address for the site or you did not wait until changes were written to disk. The steps I described abive work for all Linux distributions and setups that have a apache server installed.
  5. FeraTechInc

    FeraTechInc ISPConfig Developer

    I had to select the IP address for the site. It now works.

    However, I'm trying to get the redirection to work.

    What do the following mean?

    No Flag

    I want to have it redirected to my main company site.

    I have
    I have tried L R and L,R then No Flag.

    Is that not how redirection works?
    Last edited: Aug 29, 2012
  6. till

    till Super Moderator

    Please see apache docs for detailed infor about apache rewrite flags:

    The redirect is done for the domain of the website. As you dont use a real domain for the site, the redirect can not work. You can e.g. add a .htaccess file with a wildcard redirect in the web directory of the site.
    Last edited: Aug 29, 2012
  7. FeraTechInc

    FeraTechInc ISPConfig Developer

    From what I gather if I set "No Flags" it should work... It didn't...

    So I just made a quick HTML page.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    <frameset rows="100%,*" border="0">
    <frame name="__main" src=""
    noresize frameborder="0">
    <h2>Your Web browser does not support frames</h2>
    Please click the link to visit
    <a href=""> My Website </a>
    It's late I'm tired... It works...

    Posted the page in case anybody else finds it useful.
  8. till

    till Super Moderator

    No, it can not work. Please see my explanation in #6 if you want to know why.
  9. Stufo76

    Stufo76 New Member

    Hello Till,

    I've done *exactly* what you said, but it doesn't worked for me!

: disabled, site

Share This Page