Advertisement
Guest User

Oxid eShop Nginx config

a guest
Mar 4th, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | Software | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. root /var/www/oxid/source;
  5. index index.php index.html index.htm;
  6. server_name oxid.eshop;
  7. client_max_body_size 100M;
  8. autoindex off;
  9. if ($request_method ~ ^(TRACE|TRACK)$ ) {
  10. return 403;
  11. }
  12. location = /favicon.ico {
  13. log_not_found off;
  14. access_log off;
  15. }
  16. location = /robots.txt {
  17. allow all;
  18. log_not_found off;
  19. access_log off;
  20. }
  21. location ~ (/\.|EXCEPTION_LOG\.txt|\.log$|\.tpl$|pkg.rev) {
  22. deny all;
  23. }
  24. location ~ /out/pictures/.*(\.jpg|\.gif|\.png)$ {
  25. try_files $uri /core/utils/getimg.php;
  26. }
  27. location ~ ^/(admin|setup)/?$ {
  28. }
  29. location ~ /(core|export|modules|out|tmp|views)/ {
  30. }
  31. location / {
  32. try_files $uri /oxseo.php?$args;
  33. }
  34. location = oxseo.php {
  35. if ($args ~ "mod_rewrite_module_is=off") {
  36. rewrite /oxseo.php /oxseo.php?mod_rewrite_module_is=on? break;
  37. }
  38. include fastcgi_params;
  39. }
  40. location ~ \.php$ {
  41. include snippets/fastcgi-php.conf;
  42. fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
  43. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  44. include fastcgi_params;
  45. }
  46. }
Tags: nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement