5

nginx - serving static files, invoking PHP instead

view full story
linux-howto

http://serverfault.com – I'm having a problem migrating a website from Apache to nginx. Most of the things work fine, I just have a very specific problem with some static files here. In the docroot of the server, a phpBB is installed, and the .css files from the theme are piped through the PHP interpreter, instead of directly being delivered by the nginx, and I just can't figure out why. My nginx site config: server { listen 81; ## listen for ipv4 listen [::]:81 default ipv6only=on; ## listen for ipv6 server_name www.wanda.eu; access_log /var/log/nginx/wanda.eu.access.log; error_log /var/log/ng (HowTos)