Overslaan naar inhoud
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Aanmelden
  • Nederlands English (US) Español (AR)
  • Contact
  • Startpagina
  • Blog
  • Vacatures
  • Contact
Cafayate.Net
  • 0
  • 0
    • Startpagina
    • Blog
    • Vacatures
    • Contact
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Aanmelden
  • Contact

Mautic nginx config

  • Alle blogs
  • Tech Blog
  • Mautic nginx config
  • 5 maart 2021 in
    Administrator
    # redirect some entire folders
    rewrite ^/(vendor|translations|build)/.* /index.php break;
    location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to index.html
    # one option: try_files $uri $uri/ /index.php$is_args$args;
    try_files $uri /index.php$is_args$args;
    # Uncomment to enable naxsi on this location
    # include /etc/nginx/naxsi.rules
    }
    # Deny everything else in /app folder except Assets folder in bundles
    location ~ /app/bundles/.*/Assets/ {
    allow all;
    access_log off;
    }
    location ~ /app/ { deny all; }
    # Deny everything else in /addons or /plugins folder except Assets folder in bundles
    location ~ /(addons|plugins)/.*/Assets/ {
    allow all;
    access_log off;
    }
    location ~ /(addons|plugins)/ { deny all; }
    # Deny all php files in themes folder
    location ~* ^/themes/(.*)\.php {
    deny all;
    }
    # Don’t log favicon
    location = /favicon.ico {
    log_not_found off;
    access_log off;
    }
    # Don’t log robots
    location = /robots.txt {
    access_log off;
    log_not_found off;
    }
    # Deny yml, twig, markdown, init file access
    location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
    deny all;
    access_log off;
    log_not_found off;
    }
    # Deny all attempts to access hidden files/folders such as .htaccess, .htpasswd, .DS_Store (Mac), etc…
    location ~ /\. {
    deny all;
    access_log off;
    log_not_found off;
    }
    # Deny all grunt, composer files
    location ~* (Gruntfile|package|composer)\.(js|json)$ {
    deny all;
    access_log off;
    log_not_found off;
    }

     

     

    https://gist.github.com/that0n3guy/905c812c0f65e7ffb5ec

     

    In subdirectory pages

    Thanks for your help.

    I looked at your POST and I have seein that you have added the following lines into your nginx virtual host setup file:

    ————-
    4) Edit your site’s server block.

    The normal path is: /etc/nginx/sites-available/yoursite.com

    location /pages {
    try_files $uri $uri/ /pages/?q=$uri&$args;
    }
    ————-

    Did you only added this?
    ——
    location /pages {
    try_files $uri $uri/ /pages/?q=$uri&$args;
    }
    ——

    Is it enough to cover ALL Mautic needs to run on NGINX?
    Or have you added any other lines? If so, could you please share?

    in Tech Blog
    Website not selectable at more than one databases #1401 Odoo

    Ontworpen voor bedrijven

    We zijn een team van gepassioneerde mensen met als doel levens te verbeteren met vernieuwende producten. We ontwikkelen geweldige oplossingen voor al je zakelijke uitdagingen. Onze producten zijn ontworpen voor kleine tot middelgrote bedrijven die hun prestaties willen optimaliseren.

    Neem contact op

    Plantexel
    Pedernera
    Salta Capital 
    Argentina

    • +31 653-919-302
    • [email protected]
    Volg ons
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)