-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
43 lines (33 loc) · 1022 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# --------------------------------
# nginx configuration file
# --------------------------------
# This file should be placed in your server "sites-enabled" folder.
# Be sure to make the correct changes to match your installation.
server {
# Your server port
listen 80;
# Your server domain
server_name localhost;
# Change the absolute location to the "app/public" folder
root "/path/to/app/public/";
# Disables folder indexing
autoindex off;
# Charset encoding
charset utf-8;
# Send all requests to the framework
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# Send the 404 error page to the framework
error_page 404 /index.php;
# Block access to Apache config files, no need to change this
location ~ /\.ht {
deny all;
}
# This should be adapted to your PHP installation
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass php_upstream;
}
}