Where does the content get stored?

waleedkh nginx-forum at forum.nginx.org
Fri Mar 22 06:59:29 UTC 2019

Ok thanks that is interesting. The way I configured Nginx on the front end
is as such:


upstream ruby_application  {
  server max_fails=1 fail_timeout=10s;
  server max_fails=1 fail_timeout=10s;


and then


 include fastcgi_params;
    fastcgi_param APP_ENV prod;
    fastcgi_read_timeout 300;
    fastcgi_pass ruby_application;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


The entire web application sites in /var/www/html on the front end server
(config above)
As well as both back end servers on and in /var/www/html

If I remove the directory /var/www/html on the back end severs, the site
doesn't load ( page not found)
I thought the content was only being served on the front end but it looks
like the content needs to be on all the servers.

That makes sense if it is pushing the requests to the other servers and it
needs to server it.

My question is if the web application needs to be updated, should the code
be updated on all the servers that is hosting the content?

Seems a bit much so maybe I am missing something.


Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283437,283475#msg-283475

More information about the nginx mailing list