following various tutorials on the intarwebs, i've managed to get a
drupal site [which was previously on apache] up and running on nginx... with one major hiccup:
my site's theme has embedded PHP within some of its CSS files, to define colours/dimensions etc [for ease of making global changes]. under apache, i had set PHP to handle these CSS files by putting the following in an .
htaccess file in the theme directory:
Code:
AddHandler application/x-httpd-php .css
php_value default_mimetype "text/css"
now, obviously the PHP inside these CSS files is no longer being parsed with the new nginx setup, so that the site layout is all over the show. what i need to do is tell nginx to hand over any CSS files it finds within
/sites/<sitename>/themes/<themename> to php-fastcgi for processing, but unfortunately 99% of regex is 'alphabetti spaghetti' to me, so i'm not sure how i'd construct such a directive in the correct syntax.
can some regex guru give me a few pointers?
_________________
**************************
Mental Diarrhoea**************************