EF
ага, это понял.
1. http://localhost:8090/ открывает landing
2. http://localhost:8090/platform отдает 301
Moved Permanently
Location http://localhost/platform/
в итоге браузер идет на https://localhost/platform/
в итогу снова таже проблема
E Freeman, [28.05.21 22:36]
т.е. почему-то порт пропущен
E Freeman, [28.05.21 22:37]
да и адрес неверный...
Валентин Бартенев, [28.05.21 22:38]
у вас видимо перед nginx ещё какой-то прокси стоит, о котором nginx ничего не знает, т.к. настроен слушать 80 порт, а в этом случае порта в редиректах не будет
E Freeman, [28.05.21 22:38]
треч, ну да в docker запускается все
E Freeman, [28.05.21 22:38]
а я вообще правильной дорогой иду? или обычно мою задачу решают по-другому?
Валентин Бартенев, [28.05.21 22:41]
ничего особенного в вашей задаче нет, обычный конфиг
а покажите, что
nginx -T
выдает, а то такое ощущение, что у вас server_name_in_redirect
включен или port_in_redirect
выключенE Freeman, [28.05.21 22:42]
nginx: the configuration file /etc/nginx/nginx.conf syntax is okE Freeman, [28.05.21 22:42]
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
# configuration file /etc/nginx/mime.types:
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;