File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 / {
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments