Default Site

  • After upgrading to 1.2.0 my default site seems to have changed..


    instead of displaying hosting account 1 it is now displaying hosting account 2
    both accounts work properly when using their correct dns names..


    however http://serverpublicip and I get the wrong site - would prefer to have Cust1 site in there so there isn't confusion..


    Currently using external dns so is a little odd when I have to edit records on the registrar to get aim'd correctly but works for my needs...


    either way want


    http://publicip to resolve to domain-A


    http://www.domainA.com works without issue... however IP is currently since 1.2.0 now going to DomainB for some reason.

  • Seriously...


    Do you know many users who navigate by typing the IP address instead of the domain name? It's a false problem here ...


    The panel Web pages are now served through nginx. Thus, this is no longer the default apache site. When you access to the apache server using the IP, Apache show the first site found. You can prevent this by using the ServerDefaultPage plugin to show a specific default page, or the PanelRedirect plugin to mimic the old behavior. Look in the plugin store.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • depends on what I'm doing ..
    its a purely development box and I access it multiple ways.. however if something gets redirected to this box and the site doesn't exist I don't want it loading site - 0 just because its first in the list...


    instead I want to choose which site is default...
    will check those plugins and see...
    Neither plugin is what I want..


    simply need to tell apache which site is the default when the name doesn't exist in dns or if the page was loaded by IP address only.
    server apache docroot default if no domain is found?


    where would I set that?

  • In 1.1.x you could also not select which site you want to show if you type the ip instead of domain. If you want to show the panel, use the PanelRedirect plugin. If you want to show an default page, use the ServerDefaultPage plugin. You can also use both plugins in combination (so it's possible to access the panel via default ports (80/443) + you also have a default page).


    If you want to use a customer page, create your own apache2-configuration file in /etc/apache2/imscp/before/ and name it something like 00_custom.conf.


    If you just want to change the design of the default page, do your customizations:https://github.com/i-MSCP/plug…DefaultPage#customization

  • getting closer..


    installed the default page plugin and now when using IP address it does show server default page..


    I can technically edit the
    00_ServerDefaultPage.conf


    from:
    /var/www/virtual/default
    to
    /var/www/virtual/client.com/htdocs


    I was not able to find but one of the plugins...
    but this will work and is what I was looking for!

  • badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206