By default, the amazee.io nginx configuration will only allow execution of index.php. If you require a customized nginx configuration, we welcome you to test locally using the Docker environment, and then amazee.io will review your customizations and add to your sites when ready.
Some reasons for having a custom nginx configuration can include:
-
Custom redirects
-
Bulk redirects (e.g. moving an old gallery software into Drupal)
-
Basic Authentication required on a specific path
-
Access to custom PHP script
To create a test a custom nginx configuration:
-
Stop your Drupal Docker container if running
docker-compose down
-
Create an
amazeeio
directory withnginx
subdirectory in the same level as the docker-compose.yml file in your repo- Both
10fe-drupal.conf
and20be-drupal.conf
are needed, however, your customizations should be in20be-drupal.conf
- Both
-
Copy the example nginx configuration into the amazeeio/nginx directory
-
Add an entry to the
volumes:
section ofdocker-compose.yml
- ./amazeeio/nginx:/etc/nginx/sites-enabled
-
Start the Drupal Docker container
docker-compose up -d