-
-
Save typomedia/8d64361709c4bea2f9dc to your computer and use it in GitHub Desktop.
NGINX Virtual Host for NEOS 2.0/FLOW3
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 domain.tld; | |
root /usr/share/nginx/domain.tld/Web; | |
autoindex off; | |
access_log /var/log/nginx/$host-access.log; | |
error_log /var/log/nginx/$host-error.log error; | |
index index.php; | |
location ~ /\. { | |
access_log off; | |
log_not_found off; | |
deny all; | |
} | |
location ~ "^/_Resources/Persistent/" { | |
access_log off; | |
log_not_found off; | |
expires max; | |
# Removed for FLOW3 | |
#rewrite "(.{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break; | |
#rewrite "([a-z0-9]+/(.+/)?[a-f0-9]{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break; | |
} | |
location ~ "^/_Resources/" { | |
access_log off; | |
log_not_found off; | |
expires max; | |
break; | |
} | |
location / { | |
rewrite ".*" /index.php last; | |
} | |
try_files $uri $uri/ /index.php?$args; | |
location ~ \.php$ { | |
include fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param FLOW_CONTEXT Development; | |
fastcgi_param FLOW_REWRITEURLS 1; | |
fastcgi_split_path_info ^(.+\.php)(.*)$; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_intercept_errors on; | |
fastcgi_buffer_size 128k; | |
fastcgi_buffers 256 16k; | |
fastcgi_busy_buffers_size 256k; | |
fastcgi_temp_file_write_size 256k; | |
} | |
sendfile off; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have PHP7 installed use:
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;