nginx fix
This commit is contained in:
parent
b3f6f15750
commit
80d3b430ef
|
@ -1,37 +1,41 @@
|
||||||
server {
|
#
|
||||||
listen 443 ssl;
|
# This section is commented out to make it possible to run NGINX without errors
|
||||||
listen [::]:443 ssl ipv6only=on;
|
# to generate TLS/SSL certificate via CertBot (see README.md)
|
||||||
|
#
|
||||||
|
# server {
|
||||||
|
# listen 443 default_server ssl;
|
||||||
|
# listen [::]:443 ssl default_server;
|
||||||
|
|
||||||
server_name domain.zone;
|
# server_name domain.zone;
|
||||||
|
|
||||||
root /var/www/huesos/mirzaev/huesos/system/public;
|
# root /var/www/huesos/mirzaev/huesos/system/public;
|
||||||
|
|
||||||
index index.php;
|
# index index.php;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/domain.zone/fullchain.pem;
|
# ssl_certificate /etc/letsencrypt/live/domain.zone/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/domain.zone/privkey.pem;
|
# ssl_certificate_key /etc/letsencrypt/live/domain.zone/privkey.pem;
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
# include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||||
|
|
||||||
location / {
|
# location / {
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
# try_files $uri $uri/ /index.php?$query_string;
|
||||||
}
|
# }
|
||||||
|
|
||||||
location /api/cdek {
|
# location /api/cdek {
|
||||||
rewrite ^/api/cdek(.*)$ /$1 break;
|
# rewrite ^/api/cdek(.*)$ /$1 break;
|
||||||
index cdek.php;
|
# index cdek.php;
|
||||||
}
|
# }
|
||||||
|
|
||||||
location ~ /(?<type>categories|products) {
|
# location ~ /(?<type>categories|products) {
|
||||||
root /var/www/huesos/mirzaev/huesos/system/storage;
|
# root /var/www/huesos/mirzaev/huesos/system/storage;
|
||||||
try_files $uri =404;
|
# try_files $uri =404;
|
||||||
}
|
# }
|
||||||
|
|
||||||
location ~ \.php$ {
|
# location ~ \.php$ {
|
||||||
include snippets/fastcgi-php.conf;
|
# include snippets/fastcgi-php.conf;
|
||||||
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
|
# fastcgi_pass unix:/run/php/php8.4-fpm.sock;
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
|
Loading…
Reference in New Issue