Skip to content

Commit

Permalink
Fix issue #171 - Nginx http2 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Jul 7, 2024
1 parent 44b4866 commit 87e3d67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/lemper-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CMD_PARENT="lemper-cli"
CMD_NAME="create"

# Make sure only root can access and not direct access.
if ! declare -F "requires_root" &>/dev/null; then
if [[ "$(type -t requires_root)" != "function" ]]; then
echo "Direct access to this script is not permitted."
exit 1
fi
Expand Down Expand Up @@ -120,6 +120,7 @@ function create_vhost_default() {
server {
listen 80;
listen [::]:80;
http2 off;
server_name ${SERVERNAME};
Expand Down Expand Up @@ -239,6 +240,7 @@ function create_vhost_drupal() {
server {
listen 80;
listen [::]:80;
http2 off;
server_name ${SERVERNAME};
Expand Down Expand Up @@ -352,6 +354,7 @@ function create_vhost_laravel() {
server {
listen 80;
listen [::]:80;
http2 off;
server_name ${SERVERNAME};
Expand Down Expand Up @@ -466,6 +469,7 @@ function create_vhost_phalcon() {
server {
listen 80;
listen [::]:80;
http2 off;
server_name ${SERVERNAME};
Expand Down

0 comments on commit 87e3d67

Please sign in to comment.