-
Notifications
You must be signed in to change notification settings - Fork 12
/
nginx.conf.example
29 lines (24 loc) · 954 Bytes
/
nginx.conf.example
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
server {
listen 80;
listen [::]:80 ipv6only=on;
# Log files for Debugging
access_log /var/log/nginx/dreambox_restream-access.log;
error_log /var/log/nginx/dreambox_restream-error.log;
# Webroot Directory for Laravel project
root /home/vagrant/dreamboxrestream/public;
index index.php index.html index.htm;
# Your Domain Name
server_name dreamboxrestream.box;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM Configuration Nginx
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}