Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx 400 Bad Request The plain HTTP request was sent to HTTPS port #138

Open
pantherra opened this issue Feb 22, 2022 · 0 comments
Open

Comments

@pantherra
Copy link

Hello! When i trying access to site, that's enable force-https template in proxy nginx, via www.domain.com:443 - Nginx returns Nginx 400 Bad Request The plain HTTP request was sent to HTTPS port.
Does anybody know workaround? In standalone NGINX i can just add "listen 443 default ssl;" to config file and solve this problem.
But in myvesta i don't know where put this line.
Workaround in config /usr/local/vesta/nginx/conf - error_page 497 https://$host:$server_port$request_uri; - not working(

Debian version:

Debian 11
nginx version: nginx/1.21.2

VestaCP Version:

Version 0.9.8-26-54 [17-Dec-2021]

Installed Software (what you got with the installer):

cat /usr/local/vesta/conf/vesta.conf
WEB_SYSTEM='apache2'
WEB_RGROUPS='www-data'
WEB_PORT='8080'
WEB_SSL_PORT='8443'
WEB_SSL='mod_ssl'
PROXY_SYSTEM='nginx'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
STATS_SYSTEM='webalizer,awstats'
FTP_SYSTEM='proftpd'
CRON_SYSTEM='cron'
FIREWALL_SYSTEM='iptables'
FIREWALL_EXTENSION='fail2ban'
DISK_QUOTA='yes'
BACKUP_SYSTEM='local'
LANGUAGE='en'
VERSION='0.9.8'
DB_SYSTEM='mysql'
UPDATE_HOSTNAME_SSL='yes'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant