Code Igniter fixes
This commit is contained in:
@@ -36,14 +36,20 @@ http {
|
||||
}
|
||||
|
||||
location / {
|
||||
# Check if a file or directory index file exists, else route it to index.php.
|
||||
try_files $uri $uri/ /index.php;
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location = /index.php {
|
||||
fastcgi_pass host.docker.internal:9999;
|
||||
fastcgi_param SCRIPT_FILENAME /opt/mainsite/wrenchboard/www-api/public$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass host.docker.internal:9999;
|
||||
fastcgi_param SCRIPT_FILENAME /opt/mainsite/wrenchboard/www-api/public$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
error_page 404 /index.php;
|
||||
|
||||
# deny access to hidden files such as .htaccess
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /svs/bko/ {
|
||||
|
||||
Reference in New Issue
Block a user