Git Product home page Git Product logo

Comments (4)

palansher avatar palansher commented on August 18, 2024

Thanks for adding line "include /etc/nginx/mime.types" to default nginx config
But role still not working because there are no required or often used nginx files/snippets copied from default nginx package.
Including file mime.types.

This follows to error. Pls look at attached log: log.txt

I suppose such default behavior is confused.
Probably this happens because

  1. nginx-install role does not copy default nginx configs from nginx packages (Cannot understand why).
  2. And because the nginx-config role has "nginx_config_upload_enable" = false + role "files" folder is empty.

This is just my humble opinion that for a role is good to work just after run, with its default configuration.

from ansible-role-nginx-config.

alessfg avatar alessfg commented on August 18, 2024

The tests are passing which means that the file is correctly parsed by NGINX after using the NGINX installation role. nginx_config_upload_enable has nothing to do with creating the config (it's used to push configs from your controller node instead of using the templating capability). If mime.types is not found then it's getting deleted at some stage unrelated to this role.

The only reason that comes to mind is that you are not using our official repos and are using a distro repository instead, and NGINX packages from distro repositories do not always follow the standard package locations.

from ansible-role-nginx-config.

palansher avatar palansher commented on August 18, 2024

you are not using our official repos and are using a distro repository instead, and NGINX packages from distro repositories do >not always follow the standard package locations.

To check this out, I did on that server:

apt-get remove --purge nginx
apt install nginx

And I got nginx installed + all standard config files.
So it seems I use official repo.
Ok, thanks for idea. I will investigate it further.

from ansible-role-nginx-config.

alessfg avatar alessfg commented on August 18, 2024

That would install the NGINX package from the Ubuntu/Debian repo, not the official repo, unless you added the necessary signing keys and repos following our docs, in which case then I truly am out of ideas.

If you didn't use our docs, check out the instructions on the https://nginx.org website or use the core Ansible NGINX role to install NGINX from the official NGINX repo.

from ansible-role-nginx-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.