Skip to content

Commit dbee864

Browse files
committed
rename laravel.conf to default and add sample conf
1 parent 739cc31 commit dbee864

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ server {
33
listen 80 default_server;
44
listen [::]:80 default_server ipv6only=on;
55

6-
server_name laravel;
7-
root /var/www/laravel/public;
6+
server_name laradock;
7+
root /var/www/public;
88
index index.php index.html index.htm;
99

1010
location / {

nginx/sites/sample.conf.example

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
server {
2+
3+
listen 80;
4+
listen [::]:80;
5+
6+
server_name sample.dev;
7+
root /var/www/sample/public;
8+
index index.php index.html index.htm;
9+
10+
location / {
11+
try_files $uri $uri/ /index.php$is_args$args;
12+
}
13+
14+
location ~ \.php$ {
15+
try_files $uri /index.php =404;
16+
fastcgi_pass php-upstream;
17+
fastcgi_index index.php;
18+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
19+
include fastcgi_params;
20+
}
21+
22+
location ~ /\.ht {
23+
deny all;
24+
}
25+
}
26+
27+
28+

0 commit comments

Comments
 (0)