• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Invalid nginx configuration: nginx: [emerg] "upstream"

MarcoMAGENTObr82

New Pleskian
Good evening,
I have a Magento site.

In domain> Apache & nginx Settings I disabled Proxy Mode and in Additional nginx directives I wrote the following:

fastcgi_read_timeout 600s;
fastcgi_connect_timeout 600s;

upstream fastcgi_backend {
server unix:/run/php/php7.3-fpm.sock;
}

server {
listen 443 ssl http2;

#server_name www.dom.it;
server_name dom.it www.dom.it ipv4.dom.it;

ssl_certificate /opt/psa/var/certificates/scftiG9fO;
ssl_certificate_key /opt/psa/var/certificates/keyprv;
ssl_client_certificate /opt/psa/var/certificates/scfAW63EW;

#ssl on;
ssl_certificate /opt/psa/var/modules/letsencrypt/etc/archive/dom.it/fullchain9.pem;
ssl_certificate_key /opt/psa/var/modules/letsencrypt/etc/archive/dom.it/privkey9.pem;

if ($host ~* ^dom\.com$) {
rewrite ^(.*)$ https://www.dom.it$1 permanent;
}

#extension letsencrypt begin
location ^~ /.well-known/acme-challenge/ {
root /var/www/vhosts/default/htdocs;

types { }
default_type text/plain;

satisfy any;
auth_basic off;
allow all;

location ~ ^/\.well-known/acme-challenge.*/\. {
deny all;
}
}
#extension letsencrypt end

set $MAGE_ROOT /var/www/vhosts/dom.it/httpdocs;
set $MAGE_MODE developer;

include /var/www/vhosts/dom.it/httpdocs/nginx.conf.sample;
}

server {
listen 80;

#server_name www.dom.it;
server_name dom.it www.dom.it ipv4.dom.it;

if ($host ~* ^dom\.it$) {
rewrite ^(.*)$ http://www.dom.it$1 permanent;
}

#extension letsencrypt begin
location ^~ /.well-known/acme-challenge/ {
root /var/www/vhosts/default/htdocs;

types { }
default_type text/plain;

satisfy any;
auth_basic off;
allow all;

location ~ ^/\.well-known/acme-challenge.*/\. {
deny all;
}
}
#extension letsencrypt end

set $MAGE_ROOT /var/www/vhosts/dom.it/httpdocs;
set $MAGE_MODE developer;

include /var/www/vhosts/dom.it/httpdocs/nginx.conf.sample;
}

include_path = ".:/var/www/vhosts/dom.it/httpdocs/vendor/magento/zendframework1/library"

Invalid nginx configuration: nginx: [emerg] "upstream" directive is not allowed here in /var/www/vhosts/system/dom.it/conf/vhost_nginx.conf:4 nginx: configuration file /etc/nginx/nginx.conf test failed.

Thanks for your help

Marco
 
Back
Top