Neos nginx configuration (by @sorenmalling)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastcgi_param FLOW_CONTEXT Development; | |
fastcgi_param FLOW_REWRITEURLS 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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