• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff 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