-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx support #21
Comments
…es/default/files/civicrm.
Hmm.... that's a Drupal URL pattern... the problem is that every amp aims for a lower level in the stack (where it can support Drupal/Joomla/WordPress/Symfony/etc). But the nginx vhost has to vary depending on the CMS. I think the process needs to be more like this:
The file ".amp/nginx-template.php" would be different for each CMS> |
Totally agree, that could be improved & also take in account the site directory this site was deployed to (sites/default doesn't account for multisite). OTOH, no harm done if we block access to those locations for each CMS in AMP ... so I might go for a lazy resub of this with |
Keeping notes on what I have to do for new nginx spin-ups.
|
…#21) For example, suppose we've configured the `httpd` as `nginx`: * If the env has variable `NGINX_VHOST_TPL`, use that. * If the web-root or any parent has `.amp/nginx-vhost.php`, use that. * Otherwise, use the default template specified in `amp`.
…#21) For example, suppose we've configured the `httpd` as `nginx`: * If the env has variable `NGINX_VHOST_TPL`, use that. * If the web-root or any parent has `.amp/nginx-vhost.php`, use that. * Otherwise, use the default template specified in `amp`.
I was getting 500s on front page - the following change makes NginX behave better for me.
Also provides NginX with a deny rule for
sites/default/files/civicrm
The text was updated successfully, but these errors were encountered: