Root directory is lost when proxy_pass / to another machine


I have two server,, have following nginx.conf, it forword “/” to, and it
also has “/upload.php” page.

location / {
root html;

location /upload.php {
root html;
fastcgi_param SCRIPT_FILENAME
include fastcgi_params;

My problem is
In upload.php page, it has

However, the css is not working for

If I comment out proxy_pass;
then css is working fine for upload.php page.

Could anyone help me to solve the issue?
Thank you.

The problem is solved :slight_smile:

Add this into nginx.conf in

location /css {
root html;