Как будут выглядеть эти rewrite-правила для lighttpd?
server {
server_name site;
root /home/www-data/gameap;
index index.php;
location / {
# Check if a file or directory index file exists, else route it to index.php.
try_files $uri $uri/ /index.php;
location = /index.php {
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME /home/www-data/gameap$fastcgi_script_name;
include fastcgi_params;
}
}
location ~ \.php$ {
return 444;
}
# set expiration of assets to MAX for caching
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
}