Hello at all,

my httpd.conf
---------------------------------------------------------
prefork 10

logdir "/var/log"

types {
        include "/usr/share/misc/mime.types"
}

server "host1.example.com" {
        listen on * tls port 443
        no log
        root "/htdocs/host1"
        tls {
                certificate "/etc/httpd/ssl.crt/host1.pem"
                key "/etc/httpd/ssl.key/host1.key.pem"
                ciphers "secure"
                ticket lifetime default
        }
}
server "host2.example.com" {
        listen on * tls port 443
        no log
        root "/htdocs/host2"
        tls {
                certificate "/etc/httpd/ssl.crt/host2.pem"
                key "/etc/httpd/ssl.key/host2.key.pem"
                ciphers "secure"
                ticket lifetime default
        }
}
---------------------------------------------------------

cat /etc/hostname.em0                                                           
                                                               
inet 1.2.3.4 255.255.255.0
inet alias 1.2.3.5 255.255.255.0

DNS:
host1.example.com A 1.2.3.4
host2.example.com A 1.2.3.5

=> This works.

But if i change the IP in DNS from host2.example.com to 1.2.3.4
i will get the content of host1

I hope anyone have an idea.

Thanks

Thomas

Reply via email to