• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Nginx conf

N

nginxn

Guest
Hi,

i migrated a Zend Framework based and subversion controlled project to an Plesk 11 controlled Server and have now some problems :(

Because of Subversion and Zend Framework my document root moved from httpdocs to /projectname/public which shouldnt be any problem.

Configuring the apache was no problem, since i read this nice hint:

#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/PROJECTNAME/conf/vhost.conf

No the Project is running but with one huge Problem:
While Apache accepts the vhost.conf where i set the new document root, nginx doesnt care about this, its still using httpdocs as the document root und therefore looking in httpddocs/css for the stylesheets etc. instead of /httpdocs/Projectname/public/css

I guess i have to set up a nginx conf for this.
But when i open nginx.conf there is only mentioned:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

So now i am stuck.
I have no idea what to do and where to do it.

I guess the problem is this line in the nginx conf:
location /internal-nginx-static-location/ {
alias /var/www/vhosts/PRJECTNAME/httpdocs/;

but i am not sure.

Another question which is bothering me:
in /etc/nginx/nginx.conf is written: worker_processes 1;
which is most likely the reason, why only one instance of nginx is running.
Now i wonder if one instance of this server is enough to handle the amount of request which will generate 1200 Users during peak hours.

I hope somebody can help me :)
 
Back
Top