0

I have a problem,

I have changed the directory of a subdomain in nginx,

Before pointed to:

/srv/www/musica

And now it aims at:

/srv/www/sonerezh

I have configured both:

/etc/nginx/sites-available/musica.conf

as:

/etc/php/5.6/fpm/pool.d/musica.conf

To point to:

/srv/www/sonerezh

And I've restarted the services of php and nginx, but the nginx log tells me to keep looking on the path:

2017/05/24 08:54:26 [error] 1580 # 1580: * 9974

/srv/www/musica/index.html" is not found (2: No such file or directory) ...

I do not understand why this is happening and the new directory path is not updated.

9
  • 2
    Either that file doesn't exist, or the user that the Nginx daemon is running as doesn't have access. Check your nginx.conf for the user it runs as, then compare that with the file permissions.
    – Tim
    May 24, 2017 at 7:21
  • Update the permissions and now gives me this error: 2017/05/24 11:20:15 [error] 1580 # 1580: * 10109 "/srv/www/musica/index.html" is forbidden (13: Permission denied), But strangely the route still changes. May 24, 2017 at 9:23
  • Use nginx -T to test the configuration and identify what files nginx is actually reading. May 24, 2017 at 9:28
  • @RichardSmith The configuration is correct and you are using the musica.conf file May 24, 2017 at 11:23
  • Is /srv/www/musica mentioned anywhere in the configuration? May 24, 2017 at 12:37

1 Answer 1

-1

Restarting the server was solved

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.