After moving a Craft website from Apache server to Nginx, the admin css\js assets url-s stopped resolving. For example, on /admin/login page Craft CMS tries connecting to the /admin/resources/lib/jquery.min.js - even though that directory structure doesn't exist, it still connects fine on Apache server, but results in a 404 page on nginx.

How are these routes generated? What need to be added to vhosts file in order for it to work?

Note that Craft is used to generate only the part of the website - e.g. www.example.com/craftpages is my Craft homepage.


It just sounds like your nginx conf file isn't setup properly. See here for some working examples.

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.