revision on task 13 keyword: "only"
This commit is contained in:
parent
76ff12c374
commit
78fb755c53
@ -23,9 +23,10 @@ cat > /etc/apache2/sites-available/vitamin.conf <<EOL
|
|||||||
EOL
|
EOL
|
||||||
|
|
||||||
cat > /var/www/vitamin.brokoli.f01/.htaccess <<EOL
|
cat > /var/www/vitamin.brokoli.f01/.htaccess <<EOL
|
||||||
RewriteEngine On
|
RewriteEngine on
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteRule ^(.+)\.php$ /\$1 [R,L]
|
||||||
RewriteRule ^([^\.]+)\$ \$1.php [NC,L]
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
||||||
|
RewriteRule ^(.*?)/?\$ /\$1.php [NC,END]
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
|
|||||||
@ -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 php7.2-fpm apache2 apache2-utils nginx -y
|
apt-get install unzip php7.2 php7.2-fpm libapache2-mod-php7.2 apache2 apache2-utils nginx -y
|
||||||
Loading…
Reference in New Issue
Block a user