Re: nginx/1.16.0 не работает ссл

2019-04-27 Пенетрантность bagas
Проблему решил.
listen 9.9.2.1:443 http2 ssl;

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,283957,283958#msg-283958

___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

nginx/1.16.0 не работает ссл

2019-04-27 Пенетрантность bagas
Вечер добрый. 
Переношу проекты со старого сервера. 
После переноса вэб проекта не работают ссл сертификаты. 

# nginx -V 
nginx version: nginx/1.16.0 
built with OpenSSL 1.1.1a-freebsd 20 Nov 2018 
TLS SNI support enabled 
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx/error.log --user=www --group=www
--modules-path=/usr/local/libexec/nginx --with-file-aio
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx/access.log --with-http_v2_module
--with-http_addition_module --with-http_auth_request_module
--with-http_dav_module --with-http_gunzip_module
--with-http_gzip_static_module --with-http_random_index_module
--with-http_realip_module --with-pcre --with-http_secure_link_module
--with-http_slice_module --with-http_ssl_module
--with-http_stub_status_module --with-http_sub_module
--with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include'
--without-mail_imap_module --without-mail_pop3_module
--without-mail_smtp_module --with-threads --with-stream=dynamic 

система 
FreeBSD 12.0-RELEASE-p3 amd64 

виртуал хоcт с такой настройкой. 

server { 
listen 9.9.2.1:443 http2; 
server_name www.site.local; 
rewrite ^(.*) https://site.local$uri permanent; 
ssl_certificate /usr/local/etc/letsencrypt/live/site.local/fullchain.pem; 
ssl_certificate_key /usr/local/etc/letsencrypt/live/site.local/privkey.pem;

ssl_trusted_certificate
/usr/local/etc/letsencrypt/live/site.local/chain.pem; 
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 
ssl_prefer_server_ciphers on; 
} 

Пробовал через разные браузеры 
гугл/мозила/опера. 
гугл хром ошибка такая
Версия 73.0.3683.103 (Официальная сборка), (64 бит) 
Ошибка 
Этот сайт не может обеспечить безопасное соединение Сайт site.local отправил
недействительный ответ. 
ERR_SSL_PROTOCOL_ERROR 

В логах nginx ошибок нет.
nginx -t проходит без ошибок.
Временно вернул все обратно на старый сервер, на нем все работает хорошо.
Мне кажется что дело в версии openssl.
Пробовал сертификаты от двух разных регистраторов, reg.ru и Let’s Encrypt,
выхлоп на всех одинаков, не работает, ошибка в браузере одинаковая. 

На старом сервере система. 
FreeBSD 11.2-RELEASE-p9 amd64 

nginx 
# nginx -V 
nginx version: nginx/1.14.2 
built with OpenSSL 1.0.2o-freebsd 27 Mar 2018 
TLS SNI support enabled 
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx/error.log --user=www --group=www
--modules-path=/usr/local/libexec/nginx --with-file-aio
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx/access.log --with-http_v2_module
--with-http_addition_module --with-http_auth_request_module
--with-http_gunzip_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_realip_module --with-pcre
--with-http_secure_link_module --with-http_slice_module
--with-http_ssl_module --with-http_stub_status_module --with-http_sub_module
--with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include'
--without-mail_imap_module --without-mail_pop3_module
--without-mail_smtp_module --with-stream_ssl_module
--with-stream_ssl_preread_module --with-threads --with-stream=dynamic

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,283957,283957#msg-283957

___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

nginx/1.16.0 ssl

2019-04-27 Пенетрантность bagas
Вечер добрый.
Переношу проекты со старого сервера.
После переноса вэб проекта не работают ссл сертификаты.

# nginx -V
nginx version: nginx/1.16.0
built with OpenSSL 1.1.1a-freebsd  20 Nov 2018
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx/error.log --user=www --group=www
--modules-path=/usr/local/libexec/nginx --with-file-aio
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx/access.log --with-http_v2_module
--with-http_addition_module --with-http_auth_request_module
--with-http_dav_module --with-http_gunzip_module
--with-http_gzip_static_module --with-http_random_index_module
--with-http_realip_module --with-pcre --with-http_secure_link_module
--with-http_slice_module --with-http_ssl_module
--with-http_stub_status_module --with-http_sub_module
--with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include'
--without-mail_imap_module --without-mail_pop3_module
--without-mail_smtp_module --with-threads --with-stream=dynamic

система
FreeBSD 12.0-RELEASE-p3 amd64

виртуал хоcт с такой настройкой.

server {
listen 9.9.2.1:443 http2;
server_name www.site.local;
rewrite ^(.*) https://site.local$uri permanent;
ssl_certificate /usr/local/etc/letsencrypt/live/site.local/fullchain.pem;
ssl_certificate_key 
/usr/local/etc/letsencrypt/live/site.local/privkey.pem;
ssl_trusted_certificate
/usr/local/etc/letsencrypt/live/site.local/chain.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
}

Пробовал через разные браузеры
гугл/мозила/опера.
гугл хром 
Версия 73.0.3683.103 (Официальная сборка), (64 бит)
Ошибка
Этот сайт не может обеспечить безопасное соединение Сайт ionpower.ru
отправил недействительный ответ.
ERR_SSL_PROTOCOL_ERROR

На старом сервере система.
FreeBSD 11.2-RELEASE-p9 amd64

nginx
# nginx -V
nginx version: nginx/1.14.2
built with OpenSSL 1.0.2o-freebsd  27 Mar 2018
TLS SNI support enabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I
/usr/local/include' --with-ld-opt='-L /usr/local/lib'
--conf-path=/usr/local/etc/nginx/nginx.conf
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid
--error-log-path=/var/log/nginx/error.log --user=www --group=www
--modules-path=/usr/local/libexec/nginx --with-file-aio
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp
--http-scgi-temp-path=/var/tmp/nginx/scgi_temp
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp
--http-log-path=/var/log/nginx/access.log --with-http_v2_module
--with-http_addition_module --with-http_auth_request_module
--with-http_gunzip_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_realip_module --with-pcre
--with-http_secure_link_module --with-http_slice_module
--with-http_ssl_module --with-http_stub_status_module --with-http_sub_module
--with-cc-opt='-DNGX_HAVE_INET6=0 -I /usr/local/include'
--without-mail_imap_module --without-mail_pop3_module
--without-mail_smtp_module --with-stream_ssl_module
--with-stream_ssl_preread_module --with-threads --with-stream=dynamic

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,283954,283954#msg-283954

___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Как удалить index.php из url

2019-04-27 Пенетрантность dimademin
Попробовал, не помогло, ну результат немного другой, видимо из-за internal
возвращается 404-я

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,232265,283949#msg-283949

___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Как удалить index.php из url

2019-04-27 Пенетрантность dimademin
К сожалению не то, ведь index.php из первоначального запроса никуда не
исчезнет
Вся эта схема вообще не работает без /index.php?q=, это отыечает за "чистые
урлы"

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,232265,283948#msg-283948

___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Как удалить index.php из url

2019-04-27 Пенетрантность Константин Ткаченко
Попробуйте такой вариант
https://symfony.com/doc/master/setup/web_server_configuration.html#nginx

пт, 26 апр. 2019 г. в 23:45, Kostya Alexandrov via nginx-ru <
nginx-ru@nginx.org>:

> Тгда для location ~ \.php$ {
> http://nginx.org/ru/docs/http/ngx_http_core_module.html#internal
>
> On 26/04/2019 21:47, dimademin wrote:
> > Спасибо. Но это вы привели как раз стандартную настройку, универсальную,
> при
> > которой работают и чистые урлы и урл с index.php и без index.php
> > А мне нужно что-бы при http://bla.tld/index.php, быд 301-й на /, то
> есть на
> > http://bla.tld/ и при этом не ломались чистые урлы, то есть работал этот
> > рерайт  "try_files $uri $uri/ /index.php?$query_string" (ну или аналоги,
> что
> > я выше писал)
> >
> > Posted at Nginx Forum:
> https://forum.nginx.org/read.php?21,232265,283942#msg-283942
> >
> > ___
> > nginx-ru mailing list
> > nginx-ru@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx-ru
> ___
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru



-- 
С уважением, Константин!
Web-разработчик Mello .

Best regards,
Constantine
Mello  Web developer.
___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru