• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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