-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2652 from Varying-Vagrant-Vagrants/develop
v3.11 PR
- Loading branch information
Showing
17 changed files
with
211 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
#!/bin/bash | ||
|
||
DEFAULTPHP="7.4" | ||
echo " * Restoring the default PHP CLI version ( ${DEFAULTPHP} )" | ||
update-alternatives --set php "/usr/bin/php${DEFAULTPHP}" | ||
update-alternatives --set phar "/usr/bin/phar${DEFAULTPHP}" | ||
update-alternatives --set phar.phar "/usr/bin/phar.phar${DEFAULTPHP}" | ||
update-alternatives --set phpize "/usr/bin/phpize${DEFAULTPHP}" | ||
update-alternatives --set php-config "/usr/bin/php-config${DEFAULTPHP}" | ||
echo " * Restoration complete" | ||
php_version=$(readlink -f /usr/bin/php) | ||
if [[ $php_version != *"${DEFAULTPHP}"* ]]; then | ||
echo " * Restoring the default PHP CLI version ( ${DEFAULTPHP} )" | ||
update-alternatives --set php "/usr/bin/php${DEFAULTPHP}" | ||
update-alternatives --set phar "/usr/bin/phar${DEFAULTPHP}" | ||
update-alternatives --set phar.phar "/usr/bin/phar.phar${DEFAULTPHP}" | ||
update-alternatives --set phpize "/usr/bin/phpize${DEFAULTPHP}" | ||
update-alternatives --set php-config "/usr/bin/php-config${DEFAULTPHP}" | ||
echo " * Restoration complete" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
server { | ||
listen 80; | ||
listen 443 ssl http2; | ||
server_name {vvv_hosts}; | ||
root "{vvv_path_to_site}/public_html"; | ||
|
||
# Nginx logs | ||
error_log "{vvv_path_to_site}/log/nginx-error.log"; | ||
access_log "{vvv_path_to_site}/log/nginx-access.log"; | ||
|
||
# Enable server push if SSL/HTTP2 is being used for link preload headers | ||
http2_push_preload on; | ||
|
||
{vvv_tls_cert} | ||
{vvv_tls_key} | ||
|
||
# Nginx rules for WordPress, rewrite rules, permalinks, etc | ||
include /etc/nginx/nginx-wp-common.conf; | ||
|
||
location ~* \.(css|eot|gif|ico|jpeg|jpg|js|png|svg|tiff|tiff|ttf|webp|woff|woff2)$ { | ||
expires 100d; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.