Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- root /var/www/oxid/source;
- index index.php index.html index.htm;
- server_name oxid.eshop;
- client_max_body_size 100M;
- autoindex off;
- if ($request_method ~ ^(TRACE|TRACK)$ ) {
- return 403;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ (/\.|EXCEPTION_LOG\.txt|\.log$|\.tpl$|pkg.rev) {
- deny all;
- }
- location ~ /out/pictures/.*(\.jpg|\.gif|\.png)$ {
- try_files $uri /core/utils/getimg.php;
- }
- location ~ ^/(admin|setup)/?$ {
- }
- location ~ /(core|export|modules|out|tmp|views)/ {
- }
- location / {
- try_files $uri /oxseo.php?$args;
- }
- location = oxseo.php {
- if ($args ~ "mod_rewrite_module_is=off") {
- rewrite /oxseo.php /oxseo.php?mod_rewrite_module_is=on? break;
- }
- include fastcgi_params;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement