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
|
||||
|
||||
cat > /var/www/vitamin.brokoli.f01/.htaccess <<EOL
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^([^\.]+)\$ \$1.php [NC,L]
|
||||
RewriteEngine on
|
||||
RewriteRule ^(.+)\.php$ /\$1 [R,L]
|
||||
RewriteCond %{REQUEST_FILENAME}.php -f
|
||||
RewriteRule ^(.*?)/?\$ /\$1.php [NC,END]
|
||||
EOL
|
||||
|
||||
a2enmod rewrite
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
|
||||
echo "nameserver 192.168.122.1" > /etc/resolv.conf
|
||||
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