task 17
This commit is contained in:
parent
e73dfc8399
commit
e19ff98548
35
BrokoliWebServer/17.sh
Normal file
35
BrokoliWebServer/17.sh
Normal file
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
curl -o k1.zip https://fs.taufan.dev/public/jarkom/k1.vitamin.brokoli.yyy.com.zip
|
||||
unzip k1.zip
|
||||
mv k1.vitamin.brokoli.yyy.com /var/www/k1.vitamin.brokoli.f01
|
||||
|
||||
cat > /etc/apache2/sites-available/k1.conf <<EOL
|
||||
<VirtualHost *:9696 *:8888>
|
||||
ServerName k1.vitamin.brokoli.f01.com
|
||||
ServerAlias www.k1.vitamin.brokoli.f01.com
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/k1.vitamin.brokoli.f01
|
||||
|
||||
ErrorLog \${APACHE_LOG_DIR}/error.log
|
||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
EOL
|
||||
|
||||
cat > /etc/apache2/ports.conf <<EOL
|
||||
Listen 80
|
||||
Listen 8888
|
||||
Listen 9696
|
||||
|
||||
<IfModule ssl_module>
|
||||
Listen 443
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_gnutls.c>
|
||||
Listen 443
|
||||
</IfModule>
|
||||
EOL
|
||||
|
||||
a2ensite k1.conf
|
||||
service apache2 reload
|
||||
Loading…
Reference in New Issue
Block a user