Add portable version of Laragon
This commit is contained in:
31
bin/laragon/tpl/nginx.server.manifest.tpl
Normal file
31
bin/laragon/tpl/nginx.server.manifest.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
server {
|
||||
listen <<PORT>>;
|
||||
server_name <<HOSTNAME>> *.<<HOSTNAME>>;
|
||||
root "<<PROJECT_DIR>>";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
# This file is auto-generated.
|
||||
# If you want Laragon to respect your changes, just remove the [auto.] prefix
|
||||
# If you want to use SSL, enable it at: Menu > Nginx > SSL > Enabled
|
||||
Reference in New Issue
Block a user