Update to Laragon Portable 3.3
This commit is contained in:
34
bin/laragon/tpl/nginx.sites-enabled.00-default.manifest.tpl
Normal file
34
bin/laragon/tpl/nginx.sites-enabled.00-default.manifest.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
server {
|
||||
listen <<PORT>> default_server;
|
||||
server_name localhost ;
|
||||
root "<<DOC_ROOT>>";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
# Access Restrictions
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
include "<<LARAGON_ROOT>>/etc/nginx/alias/*.conf";
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
autoindex on;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass php_upstream;
|
||||
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
location = /robots.txt { access_log off; log_not_found off; }
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user