← Back
Editing: asda.uz.conf_5
server { listen 188.208.197.7:80; server_name asda.uz www.asda.uz; ## redirect https to http ## # return 301 https://$server_name$request_uri; #} #server { # listen 188.208.197.7:443 ssl; # server_name asda.uz www.asda.uz; # ssl_certificate /etc/letsencrypt/live/asda.uz/fullchain.pem; # managed by Certbot # ssl_certificate_key /etc/letsencrypt/live/asda.uz/privkey.pem; # managed by Certbot # include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot access_log /home/barventuz/logs/asda.uz-nginx.access.log; error_log /home/barventuz/logs/asda.uz-nginx.error.log; root /home/barventuz/public_html/asda.uz; index index.php index.html; ## redirect www to nowww # if ($host = 'www.asda.uz') { # return 301 https://asda.uz$request_uri; # } client_max_body_size 50M; location / { try_files $uri $uri/ /index.php?$args; } location ~ ^/(config|temp|logs)/ { deny all; } location ~ \.php$ { include fastcgi_params; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php-fpm/www.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { expires max; log_not_found off; } }
Save File
Cancel