nginx Customization
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
Implement an nginx customization
Stop your Drupal Docker container if running
docker-compose downCreate an
amazeeiodirectory withnginxsubdirectory in the same level as the docker-compose.yml file in your repoGrab the sample configs from here
Be sure to edit the lines with
server_nameto reflect the hostname of your docker container
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-enabledStart the Drupal Docker container
docker-compose up -d