nginx: [emerg] bind() to ЗДЕСЬ-ИП:443 failed (98: Address already in use)
tcp 0 0 :::443 :::* LISTEN 2488/httpd
server {
listen %ip%:%web_ssl_port% ssl http2;
server_name %domain_idn% %alias_idn%;
root %docroot%;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/%domain%.log combined;
access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error;
ssl on;
ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%;
server {
listen %ip%:%web_port% ssl http2;
server_name %domain_idn% %alias_idn%;
root %docroot%;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/%domain%.log combined;
access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error;
<?php
$template_part = get_field( 'myfield' );
if ( locate_template( array( "$template_part" ) ) != '' ) {
get_template_part($template_part);
} else {
// показываем что-то дефолтное
}
?>
centos 6, vestacp, nginx + httpd