mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-05 04:00:13 +00:00
Update GHA workflow [skip travis]
This commit is contained in:
parent
2a6e115795
commit
9ce3af6fe1
2 changed files with 9 additions and 5 deletions
|
@ -1,10 +1,13 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80 default_server;
|
||||||
|
listen [::]:80 default_server;
|
||||||
root /var/www/html;
|
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
charset UTF-8;
|
charset UTF-8;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
root /var/www/html;
|
||||||
|
|
||||||
|
# Add index.php to the list if you are using PHP
|
||||||
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/html/;
|
root /var/www/html/;
|
||||||
|
|
|
@ -112,8 +112,9 @@ printf "\n"
|
||||||
echo "${bold}${yellow}---------------------"
|
echo "${bold}${yellow}---------------------"
|
||||||
echo "${bold}${yellow}Setup Vhost for Nginx"
|
echo "${bold}${yellow}Setup Vhost for Nginx"
|
||||||
echo "${bold}${yellow}---------------------"
|
echo "${bold}${yellow}---------------------"
|
||||||
sudo cp ./dev-tools/default.vhost /etc/nginx/sites-available/default.vhost
|
sudo rm /etc/nginx/sites-available/default
|
||||||
sudo ln -s /etc/nginx/sites-available/default.vhost /etc/nginx/sites-enabled/default.vhost
|
sudo cp ./dev-tools/default.vhost /etc/nginx/sites-available/default
|
||||||
|
sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
||||||
sudo cp ./dev-tools/index.html /var/www/html/index.html
|
sudo cp ./dev-tools/index.html /var/www/html/index.html
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue