SSL IP showing same content like domain name.

Discussion in 'Installation/Configuration' started by Alacarga, Feb 27, 2023.

Tags:
  1. Alacarga

    Alacarga New Member

    Hello.
    ISPConfig Version: 3.1dev
    SSL: AlphaSSL

    I have a problem.
    My https public IP server is showing my comercial website like if I was using my domain name.
    My http public IP server is showing a default site (no my comerdial website, PERFECT! what I want)
    I don't want my website to be displayed by putting https:// and the IP
    I've searched for how to change this, but haven't been able to find it.
    Could you help me?

    Thank you so much!
    Ed.
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    Well this is just how that works. You can workaround this with a rewrite rule like this
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^10.10.10.10$
    RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]
    This will rediect http://10.10.10.10 to http://www.domain.tld. nginx works a bit diffrent.
     
    ahrasis and Alacarga like this.
  3. Alacarga

    Alacarga New Member

    Yes, perfect workaround, thanks!
     

Share This Page