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 [warn] 99504#99504: the "listen ... http2" directive is deprecated #171

Open
joglomedia opened this issue Jul 6, 2024 · 2 comments
Assignees

Comments

@joglomedia
Copy link
Owner

joglomedia commented Jul 6, 2024

root@www:~# nginx -t
2024/07/06 09:14:28 [warn] 99504#99504: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/00-default:150
2024/07/06 09:14:28 [warn] 99504#99504: the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/00-default:151
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

the old format is

server {
    listen      90.91.45.3:443 ssl http2;

and the new format for nginx >= 1.25.1 is

server {
    listen      90.91.45.3:443 ssl;
    http2  on;

Ref:

@joglomedia joglomedia self-assigned this Jul 6, 2024
joglomedia added a commit that referenced this issue Jul 7, 2024
joglomedia added a commit that referenced this issue Jul 7, 2024
@IIXINGCHEN
Copy link

How to use the lemper-cli command to add the correct virtual machine and access it correctly?

@joglomedia
Copy link
Owner Author

How to use the lemper-cli command to add the correct virtual machine and access it correctly?

lemper-cli used for managing virtual host, as mentioned in the README, here is an example command creating new virtual host (installing WordPress site).

lemper-cli site add -u ${USER} -d example.test -f wordpress \
-w ${HOME}/webapps/example.test --install-app

${USER} replace it by using created user during LEMPer installation
${HOME} replace it with path to user home directory

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

No branches or pull requests

2 participants