Я пытаюсь переписать некоторые ссылки с помощью nginx, но файлы php загружаются вместо выполнения, если я запускаю файл php в браузере, он работает, поэтому проблем с fastcgi нет.
Я Я уже проверил другие подобные вопросы, но мне ничего не помогло.
Мой файл nginx.conf
....
location / {
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9002;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /contact {
rewrite ^/contact/?$ /contact.php last;
}
Мне нужно переписать contact.php в / contact, но он не работает.
Я также пробовал:
location /contact {
rewrite ^/contact?$ /contact.php last;
}
location /contact {
rewrite ^/contact$ /contact.php last;
}
location /contact {
rewrite ^/contact?$ /contact.php break;
}
Ничего не работает. У меня не было этой проблемы в прошлом ...
Зависит от версии SQL Server и версии Windows Server 2012
.
Далее по ссылке вы сами написали .
Но насколько я могу судить, все версии Windows Server 2012 поддерживают все версии SQL Server 2016.
Полный список, как указано в ссылке выше:
-. 121---438058--SQL Server Enterprise
Windows Server 2016 Datacenter
Windows Server 2016 Standard
Windows Server 2012 R2 Datacenter
Windows Server 2012 R2 Standard
Windows Server 2012 R2 Essentials
Windows Server 2012 R2 Foundation
Windows Server 2012 Datacenter
Windows Server 2012 Standard
Windows Server 2012 Essentials
Windows Server 2012 Foundation
SQL Server Standard
Windows Server 2016 Центр обработки данных
Windows Server 2016 Стандартный
Windows Server 2012 R2 Центр обработки данных
Windows Server 2012 R2 Стандартный
Windows Server 2012 R2 Essentials
Windows Server 2012 R2 Foundation
Windows Server 2012 Datacenter
Windows Server 2012 Standard
Windows Server 2012 Essentials
Windows Server 2012 Foundation
Windows 10 Home
Windows 10 Professional
Windows 10 Enterprise
Windows 8. 1
Windows 8.1 Профессиональная
Windows 8. 1 Enterprise
Windows 8
Windows 8 Pro
Windows 8 Enterprise
SQL Server Web
Windows Server 2016 Datacenter
Windows Server 2016 Standard
Windows Server 2012 R2 Datacenter
Windows Server 2012 R2 Standard
Windows Server 2012 R2 Essentials
Windows Server 2012 R2 Foundation
Windows Server 2012 Datacenter
Windows Server 2012 Standard
Windows Server 2012 Essentials
Windows Server 2012 Foundation
Я нашел проблему, Я только что заменил:
location /contact {
rewrite ^/contact?$ /contact.php last;
}
на
rewrite ^/contact? /contact.php last;