Update to Laragon Portable 3.3
This commit is contained in:
32
etc/nginx/alias/adminer.conf
Normal file
32
etc/nginx/alias/adminer.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
location /adminer {
|
||||
try_files $uri $uri/ =404;
|
||||
alias C:/wamp/etc/apps/adminer/;
|
||||
index index.php;
|
||||
}
|
||||
|
||||
location ~ ^/adminer/(.+\.php)$ {
|
||||
alias C:/wamp/etc/apps/adminer/$1;
|
||||
fastcgi_pass php_upstream;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
|
||||
# From fastcgi_params
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
}
|
||||
38
etc/nginx/alias/laragon.conf
Normal file
38
etc/nginx/alias/laragon.conf
Normal file
@@ -0,0 +1,38 @@
|
||||
location /laragon {
|
||||
try_files $uri $uri/ =404;
|
||||
alias C:/wamp/etc/apps/laragon/;
|
||||
index index.php;
|
||||
allow all;
|
||||
}
|
||||
|
||||
location ~ /laragon/uploads/(.+)\.php$ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ ^/laragon/(.+\.php)$ {
|
||||
allow all;
|
||||
alias C:/wamp/etc/apps/laragon/$1;
|
||||
fastcgi_pass php_upstream;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
|
||||
# From fastcgi_params
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
}
|
||||
32
etc/nginx/alias/memcached.conf
Normal file
32
etc/nginx/alias/memcached.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
location /memcached {
|
||||
try_files $uri $uri/ =404;
|
||||
alias C:/wamp/etc/apps/memcached/;
|
||||
index index.php;
|
||||
}
|
||||
|
||||
location ~ ^/memcached/(.+\.php)$ {
|
||||
alias C:/wamp/etc/apps/memcached/$1;
|
||||
fastcgi_pass php_upstream;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
|
||||
# From fastcgi_params
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
#fastcgi_param DOCUMENT_ROOT C:/wamp/etc/apps/phpmyadmin/; # <-- Changed
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
}
|
||||
33
etc/nginx/alias/phpmyadmin.conf
Normal file
33
etc/nginx/alias/phpmyadmin.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
location /phpmyadmin {
|
||||
try_files $uri $uri/ =404;
|
||||
alias C:/wamp/etc/apps/phpmyadmin/;
|
||||
index index.php;
|
||||
|
||||
|
||||
}
|
||||
|
||||
location ~ ^/phpmyadmin/(.+\.php)$ {
|
||||
alias C:/wamp/etc/apps/phpmyadmin/$1;
|
||||
fastcgi_pass php_upstream;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
|
||||
# From fastcgi_params
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
}
|
||||
31
etc/nginx/alias/redis.conf
Normal file
31
etc/nginx/alias/redis.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
location /redis {
|
||||
try_files $uri $uri/ =404;
|
||||
alias C:/wamp/etc/apps/phpRedisAdmin/;
|
||||
index index.php;
|
||||
}
|
||||
|
||||
location ~ ^/redis/(.+\.php)$ {
|
||||
alias C:/wamp/etc/apps/phpRedisAdmin/$1;
|
||||
fastcgi_pass php_upstream;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
|
||||
# From fastcgi_params
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param SERVER_NAME $server_name;
|
||||
fastcgi_param REDIRECT_STATUS 200;
|
||||
}
|
||||
6
etc/nginx/php_upstream.conf
Normal file
6
etc/nginx/php_upstream.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# if you want to increase the number of PHP processes, put this line (without #) on usr/laragon.ini, under [nginx]
|
||||
# [nginx]
|
||||
# Upstream=5
|
||||
upstream php_upstream {
|
||||
server 127.0.0.1:9001 weight=1 max_fails=1 fail_timeout=1;
|
||||
}
|
||||
42
etc/nginx/sites-enabled/00-default.conf
Normal file
42
etc/nginx/sites-enabled/00-default.conf
Normal file
@@ -0,0 +1,42 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
#listen 443 ssl default_server;
|
||||
server_name localhost ;
|
||||
root "C:/laragon-3.1/www";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
# Access Restrictions
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
|
||||
include "C:/laragon-3.1/etc/nginx/alias/*.conf";
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass php_upstream;
|
||||
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||||
}
|
||||
|
||||
# Enable SSL
|
||||
#ssl_certificate "C:/laragon-3.1/etc/ssl/default.crt";
|
||||
#ssl_certificate_key "C:/laragon-3.1/etc/ssl/default.key";
|
||||
#ssl_session_timeout 5m;
|
||||
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
#ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
|
||||
#ssl_prefer_server_ciphers on;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
30
etc/nginx/sites-enabled/auto.blah.dev.conf
Normal file
30
etc/nginx/sites-enabled/auto.blah.dev.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name blah.dev *.blah.dev;
|
||||
root "C:/laragon-3.1/www/blah/";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
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 by going to Menu > Nginx > SSL > Enabled
|
||||
30
etc/nginx/sites-enabled/auto.emcha.dev.conf
Normal file
30
etc/nginx/sites-enabled/auto.emcha.dev.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name emcha.dev *.emcha.dev;
|
||||
root "C:/laragon-3.1/www/emcha/";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
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 by going to Menu > Nginx > SSL > Enabled
|
||||
30
etc/nginx/sites-enabled/auto.hoho.dev.conf
Normal file
30
etc/nginx/sites-enabled/auto.hoho.dev.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name hoho.dev *.hoho.dev;
|
||||
root "C:/laragon-3.1/www/hoho/";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
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 by going to Menu > Nginx > SSL > Enabled
|
||||
30
etc/nginx/sites-enabled/auto.mint.dev.conf
Normal file
30
etc/nginx/sites-enabled/auto.mint.dev.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name mint.dev *.mint.dev;
|
||||
root "C:/laragon-3.1/www/mint/";
|
||||
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
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 by going to Menu > Nginx > SSL > Enabled
|
||||
Reference in New Issue
Block a user