HI! i have installed Ispconfig by centos7.2 perfect server manual I have issues with _default_ virtualhostname I set 2 domain name and sites on 1 ip and every time i restart httpd my default server name chenging, even apachectl -D DUMP_VHOSTS do same sh&t. #apachectl -D DUMP_VHOSTS VirtualHost configuration: *:8081 ma*ru (/etc/httpd/conf/sites-enabled/000-apps.vhost:9) *:8080 m*ru (/etc/httpd/conf/sites-enabled/000-ispconfig.vhost:9) *:80 is a NameVirtualHost...... *:443 is a NameVirtualHost default server ma****u *********NO CHANGE IN CONFIG*********** #apachectl -D DUMP_VHOSTS VirtualHost configuration: *:8081 se**ch (/etc/httpd/conf/sites-enabled/000-apps.vhost:9) *:8080 se***ch (/etc/httpd/conf/sites-enabled/000-ispconfig.vhost:9) *:80 is a NameVirtualHost ........ *:443 is a NameVirtualHost default server se***chso i check 000-apps.vhost:9 & 000-ispconfig.vhost:9 and there is <VirtualHost _default_:8081> <VirtualHost _default_:8080>so every other httpd reload i have cert issue . I dont spot ServerName directive in sites-enable\000-*, should i hardcode it in apache directive?
Not quite sure what your problem is, maybe you should try to describe the actual issue that you have with your hosted sites, what is not working and which exact error message do you get in the browser whenb you access one of the non working sites. The 000 sites are on different ports, they have no effect on the websites that you host on that server as they are the only sites on port 8080 and 8081, so they don't need a servername, they are port based vhosts.
Thanks for reply. I'll try to explain more clearly. i have 2 domain. let's call them A and B. Domain A have few subdomains, sub1.A get letsencrypt cert by crond, sub2.A by ispconfig parametr, each subdomain dns name is included to certifcate parameters, and works fine without crossing. It's legacy config for postfix, dovecot, ftp and so on encrypting. Actual issue is domain B cerificate. Domain B get it by ispconfig tool, and it works - \b\ssl\b.cert is actual certificate. But when I restart httpd I get ispconfig.local cert insted B. I must restart httpd one more time to get right cert. With enabled HSTS i have no other option to acсess site B. I think /etc/httpd/conf.d/ssl.conf rewrite /etc/httpd/conf/sites-enabled/100-B.vhost ssl config becouse "*:443 is a NameVirtualHost default server DOMAINNAME" changing every restart, and i don't understand why. some more useful info: I using microsoft dns server for ispconfig and local users, ispconfig is behind NAT