Cleanup + fix nginx
This commit is contained in:
11 files changed
+107
-78
No files matched your search
+8
-11
@@ -54,7 +54,7 @@ server {
|
||||
server_tokens off;
|
||||
|
||||
root /app/public;
|
||||
index index.php;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
# make .well-known directory accessible
|
||||
location ~ /.well-known {
|
||||
@@ -66,21 +66,18 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri.php $uri/ /index.php$is_args$args;
|
||||
if (!-e $request_filename){
|
||||
rewrite ^(.*)$ /$1.php;
|
||||
}
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
try_files $uri =404;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
|
||||
location ~ \.html$ {
|
||||
try_files $uri $uri.html $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri $uri.php $uri/ /index.php$is_args$args;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
error_page 404 /404;
|
||||
|
||||
Reference in new issue
Block a user