zietbukuel

mautic.conf

Dec 15th, 2019
522
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # redirect index.php to root
  2. rewrite ^/index.php/(.*) /$1  permanent;
  3.  
  4. # Deny everything else in /app folder except Assets folder in bundles
  5. location ~ /app/bundles/.*/Assets/ {
  6.     allow all;
  7.     access_log off;
  8. }
  9.  
  10. # Deny everything else in /addons or /plugins folder except Assets folder in bundles
  11. location ~ /(addons|plugins)/.*/Assets/ {
  12.     allow all;
  13.     access_log off;
  14. }
  15.  
  16. # Deny all php files in themes folder
  17. location ~* ^/themes/(.*)\.php {
  18.     deny all;
  19. }
  20.  
  21. # Deny yml, twig, markdown, init file access
  22. location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ {
  23.     deny all;
  24.     access_log off;
  25.     log_not_found off;
  26. }
  27.  
  28. # Deny all attempts to access hidden files/folders such as .htaccess, .htpasswd, .DS_Store (Mac), etc...
  29. location ~ /\. {
  30.     deny all;
  31.     access_log off;
  32.     log_not_found off;
  33. }
  34.  
  35. # Deny all grunt, composer files
  36. location ~* (Gruntfile|package|composer)\.(js|json)$ {
  37.     deny all;
  38.     access_log off;
  39.     log_not_found off;
  40. }
  41.  
  42. location ~*  \.(jpg|jpeg|png|ico|pdf)$ {
  43.     expires 15d;
  44. }
  45.  
  46. # Deny access to any files with a .php extension in the uploads directory
  47. location ~* /(?:uploads|files)/.*\.php$ {
  48.     deny all;
  49. }
  50.  
  51. # Solve email tracking pixel not found
  52. location ~ email/(.*).gif {
  53.     try_files $uri /index.php?$args;
  54. }
  55.  
  56. # Solve JS Loading 404 Error
  57. location ~ (.*).js {
  58.     try_files $uri /index.php?$args;
  59. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×