seryj09: у тебя же стоит приоритет 40 на удаление и 15 на добавление. remove_action просто удаляет это и все. кароч без акшна поставь в нужном месте. woocommerce_template_single_meta(); и добавь в function.php action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
Daemon23RUS: я тоже очень надеюсь найти решение. Ведь все были новичками и искали советы на подобных форумах. И когда этот вопрос и ответ проиндексирует гугл и яндекс. Уже другие будут искать ответ и находить его здесь.
Домен1 работает и еще А+ оценку получает за сертификат, а домен2 нет. Просто загружается страница http. Если на домен2 попытаться загрузить в браузере чере https то выдает не доверенный сертификат и говорит, что он назначен для домен1
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen *:80;
server_name Домен1;
access_log /var/log/nginx/Домен1.access.log;
error_log /var/log/nginx/Домен1.error.log;
root /srv/Домен1;
index index.html index.htm index.php;
# Directives to send expires headers and turn off 404 error logging.
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off; log_not_found off; expires max;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~ /\. {
deny all;
}
# Deny access to any files with a .php extension in the uploads directory
# Works in sub-directory installs and also in multisite network
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
#
location ~ [^/]\.php(/|$) {
# Zero-day exploit defense.
# forum.nginx.org/read.php?2,88845,page=3
# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param HTTPS on; # Для php-fpm
fastcgi_index index.php;
include fcgi.conf;
fastcgi_pass unix:/var/run/Домен1.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen *:80;
# Directives to send expires headers and turn off 404 error logging.
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off; log_not_found off; expires max;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~ /\. {
deny all;
}
# Deny access to any files with a .php extension in the uploads directory
# Works in sub-directory installs and also in multisite network
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
#
location ~ [^/]\.php(/|$) {
# Zero-day exploit defense.
# forum.nginx.org/read.php?2,88845,page=3
# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param HTTPS on; # Для php-fpm
fastcgi_index index.php;
include fcgi.conf;
fastcgi_pass unix:/var/run/Домен2.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Игорь Воротнёв: все рано не работает(
Опять ругается
[emerg] duplicate listen options for 0.0.0.0:443 in /etc/nginx/conf.d/домен.conf:18
nginx: configuration file /etc/nginx/nginx.conf test failed
Игорь Воротнёв: Не сработало( При запуске все равно ругается на конфиги nginx: [emerg] duplicate listen options for 0.0.0.0:443 in /etc/nginx/conf.d/домен.conf:18
nginx: configuration file /etc/nginx/nginx.conf test failed
Выполнил nginx -V Результат: nginx version: nginx/1.4.6 (Ubuntu)
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
TLS SNI support enabled. Версия nginx/1.4.6 есть та строчка как вы и говорили