В чем вопрос, как настроить nginx чтобы отдавал одностраничник?
server {
listen 80 default_server;
server_name 44.11.22.33;
location / {
proxy_set_header Host $host;
proxy_pass http://backend:5001;
}
}
Dec 02 16:13:32 stupid-cap.com systemd[1]: Starting The Apache HTTP Server...
Dec 02 16:13:32 stupid-cap.com apachectl[10403]: (2)No such file or directory: AH02291: Cannot access directory '/www/home/logs/' for main error log
Dec 02 16:13:32 stupid-cap.com apachectl[10403]: AH00014: Configuration check failed
Dec 02 16:13:32 stupid-cap.com apachectl[10400]: Action 'start' failed.
Dec 02 16:13:32 stupid-cap.com apachectl[10400]: The Apache error log may have more information.
Dec 02 16:13:32 stupid-cap.com systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 02 16:13:32 stupid-cap.com systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 02 16:13:32 stupid-cap.com systemd[1]: Failed to start The Apache HTTP Server.
proxy_set_header X-Forwarded-Proto https;
не сработало(location / {
add_header X-Cache-Status $upstream_cache_status;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $Host;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_pass http://backend:8008;
}