Skip to content

Instantly share code, notes, and snippets.

@beardcoder
Forked from reflexxion/flow-3-settings.conf
Created January 1, 2019 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beardcoder/364be2085f11a1270254e5d069c26e0f to your computer and use it in GitHub Desktop.
Save beardcoder/364be2085f11a1270254e5d069c26e0f to your computer and use it in GitHub Desktop.
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