task 12
This commit is contained in:
parent
8285b2afb5
commit
a3cb863f98
25
BrokoliWebServer/12.sh
Normal file
25
BrokoliWebServer/12.sh
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl -o vitamin.zip https://fs.taufan.dev/public/jarkom/vitamin.brokoli.yyy.com.zip
|
||||||
|
unzip vitamin.zip
|
||||||
|
mv vitamin.brokoli.yyy.com /var/www/vitamin.brokoli.f01
|
||||||
|
|
||||||
|
service nginx stop
|
||||||
|
service php7.2-fpm stop
|
||||||
|
service apache2 start
|
||||||
|
|
||||||
|
cat > /etc/apache2/sites-available/vitamin.conf <<EOL
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName vitamin.brokoli.f01.com
|
||||||
|
ServerAlias www.vitamin.brokoli.f01.com
|
||||||
|
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /var/www/vitamin.brokoli.f01
|
||||||
|
|
||||||
|
ErrorLog \${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||||
|
</VirtualHost>
|
||||||
|
EOL
|
||||||
|
|
||||||
|
a2ensite vitamin.conf
|
||||||
|
service apache2 reload
|
||||||
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
echo "nameserver 192.168.122.1" > /etc/resolv.conf
|
echo "nameserver 192.168.122.1" > /etc/resolv.conf
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install unzip php7.2-fpm nginx -y
|
apt-get install unzip php7.2 php7.2-fpm apache nginx -y
|
||||||
Loading…
Reference in New Issue
Block a user