Всем привет! Заказал хостинг на
Хостинг
Ну и выбрал там сервер на базе CentOs и Nginx.(Никогда не настраивал).
Вот свой конфигурационный файл сервера, который сформировали на сервере
server {
listen 0.0.0.0:80 default_server;
listen 0.0.0.0:443 default_server ssl http2;
ssl_certificate /etc/nginx/ssl/lism.pro/site0.cert;
ssl_certificate_key /etc/nginx/ssl/lism.pro/site0.key;
server_name lism.pro lis6764392.nichost.ru www.lis6764392.nichost.ru www.lism.pro;
access_log /var/log/nginx/lism.pro.access_log combined;
proxy_redirect http://lism.pro:8174/ /;
proxy_redirect http://lis6764392.nichost.ru:8174/ /;
proxy_redirect http://www.lis6764392.nichost.ru:8174/ /;
proxy_redirect http://www.lism.pro:8174/ /;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $thescheme;
proxy_set_header X-Request-Scheme $thescheme;
client_max_body_size 1g;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 900;
proxy_read_timeout 900;
proxy_buffer_size 64k;
proxy_buffers 8 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
location / {
proxy_pass http://127.0.0.1:8174;
}
location /.well-known/acme-challenge/ {
proxy_pass http://127.0.0.1:8174;
proxy_intercept_errors on;
log_not_found off;
error_page 404 = @acme-validation-server;
}
location @acme-validation-server {
resolver 10.255.255.1;
resolver_timeout 5s;
set $acme_server cale.hosting.nic.ru;
proxy_set_header Host cale.hosting.nic.ru;
proxy_pass http://$acme_server;
proxy_intercept_errors on;
log_not_found off;
error_page 404 = @fallback;
}
location ~* ^.+\.(jpg|jpeg|gif|swf|png|ico|mp3|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|avi|ppt|txt|tar|mid|midi|wav|bmp|rtf|wmv|mpeg|mpg|mp4|m4a|spx|ogx|ogv|oga|webm|weba|ogg|tbz|js|7z|woff|woff2|svg|iso|webp)$ {
root /home/lis6764392/lism.pro/docs/frontend/web;
error_page 404 = @fallback;
index index.php;
log_not_found off;
accel_htaccess_switch on;
}
location @fallback {
proxy_pass http://127.0.0.1:8174;
}
}
Я добавил строчки :
root /home/lis6764392/lism.pro/docs/frontend/web;
index index.php;
##########################################
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ ^/assets/.*\.php$ {
deny all;
}
location ~* \.php$ {
try_files $uri =404;
fastcgi_pass $fcgi_server;
include fastcgi.conf;
}
location ~* /\. {
deny all;
}
И короче че то у меня не пашет!
Включенные модули Php на хостинге