diff options
author | FabioLolix | 2017-11-05 02:39:56 +0100 |
---|---|---|
committer | FabioLolix | 2017-11-05 02:39:56 +0100 |
commit | c19f4a4601e4886a622e182e000b9b8cea59d316 (patch) | |
tree | efaf1951081735e53d88354e36b3eaa8647334c6 /example_nginx_vhost.conf | |
download | aur-sonerezh.tar.gz |
Initial commit
Diffstat (limited to 'example_nginx_vhost.conf')
-rw-r--r-- | example_nginx_vhost.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/example_nginx_vhost.conf b/example_nginx_vhost.conf new file mode 100644 index 000000000000..ece7b1eab0f2 --- /dev/null +++ b/example_nginx_vhost.conf @@ -0,0 +1,21 @@ +server { + server_name sonerezh.localhost; + access_log /var/log/nginx/sonerezh.access.log; + error_log /var/log/nginx/sonerezsh.error.log; + + root /usr/share/webapps/sonerezh/app/webroot; + index index.php; + + location / { + try_files $uri $uri/ /index.php?$args; + expires 14d; + add_header Cache-Control 'public'; + } + + location ~ \.php$ { + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_index index.php; + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; + include fastcgi_params; + } +} |