revision on task 13 keyword: "only"

This commit is contained in:
Keanu Taufan 2024-10-04 21:52:50 +07:00
parent 76ff12c374
commit 78fb755c53
No known key found for this signature in database
GPG Key ID: 1952D665A3A51BE0
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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