Skip to content

Conversation

@GregoireWulliamoz
Copy link

Issue #6 :

Description of changes:

  • Add nginx config file to support drupal

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ghost
Copy link

ghost commented Sep 4, 2020

Hope this into the official docs

@ghost
Copy link

ghost commented Jan 8, 2021

@GregoireWulliamoz , this config does not work its showing this error while trying to deploy [ERROR] An error occurred during execution of command [app-deploy] - [start proxy with new configuration]. Stop running the command. Error: copy proxy conf from staging failed with error validate nginx configuration failed with error Command /bin/sh -c /usr/sbin/nginx -t -c /var/proxy/staging/nginx/nginx.conf failed with error exit status 1. Stderr:nginx: [emerg] "location" directive is not allowed here in /var/proxy/staging/nginx/conf.d/drupal.conf:1 nginx: configuration file /var/proxy/staging/nginx/nginx.conf test failed

@ghost
Copy link

ghost commented Jan 8, 2021

Sorry it works now, only when i placed the config file in .platform/nginx/conf.d/ebextensions/drupal.conf . Any idea why it doesnt work when i place it in .platform/nginx/conf.d/drupal.conf. The later is what suggested in the docs extending linux platforms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant