# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
# Remove from everywhere index.php
if ($request_uri ~* "^(./)index.php(/?)(.)") {
--- | |
- name: Create New User | |
hosts: all | |
become: true | |
gather_facts: false | |
vars: | |
# Define your username and password here that you want to create on target hosts. | |
username: newuser | |
userpass: user_password | |
tasks: |
version: '3.2' | |
services: | |
db: | |
image: mysql:8.0 | |
container_name: appsDB | |
restart: always | |
ports: | |
- '6603:3306' | |
environment: |
# Remove index.php$
if ($request_uri ~* "^(.*/)index\.php$") {
return 301 $1;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
# Remove from everywhere index.php
if ($request_uri ~* "^(./)index.php(/?)(.)") {