Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Neos nginx configuration (by @sorenmalling)
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /_Resources/ {
access_log off;
log_not_found off;
expires max;
break;
}
fastcgi_param FLOW_CONTEXT Development;
fastcgi_param FLOW_REWRITEURLS 1;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php$is_args$args;
location ~ ^(.*)\.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param FLOW_REWRITEURLS 1;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name project.sma;
root /Users/soren/Sites/project/Web;
include /usr/local/etc/nginx/conf.d/flow-3.0-settings;
include /usr/local/etc/nginx/conf.d/flow-context-development;
access_log /usr/local/etc/nginx/logs/default.access.log main;
include /usr/local/etc/nginx/conf.d/php-fpm;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.