4-Laboratoriya topshirig’i Mavzu: iscsi ni o’rnatish va sozlash. Lamp server. Ishdan maqsad
Download 0.63 Mb.
|
mydomain.com in your browser.
9. Configure Apache (Optional) Now that you have Apache serving web pages on your Ubuntu 20.04 / 20.10 LAMP server, there may be some additional configuration settings that will be useful to you. 9.1. Disable Directory Listing and Enable AllowOverride Apache by default will list contents of your directories without indexes (index.html, index.php). This is a security risk because it could allow hackers to browse your web server looking for scripts. You will also find that .htaccess will be ignored by default in Apache. If you need .htaccess, you can enable it by altering the Apache configuration file. Open the config file. sudo nano /etc/apache2/apache2.conf Press CTRL + W and search for The block should look something like this: /etc/apache2/apache2.conf Options Indexes FollowSymLinks AllowOverride None Require all granted Delete Indexes to stop Apache listing directories and change AllowOverride to All to enable .htaccess. It should now look like this: /etc/apache2/apache2.conf Options FollowSymLinks AllowOverride All Require all granted Save and exit (press CTRL + X, press Y and then press ENTER) Restart Apache. sudo systemctl restart apache2 9.2. Enable mod_rewrite If you want to later configure some rules in .htaccess, you will most likely need to enable mod_rewrite. sudo a2enmod rewrite Restart Apache. sudo systemctl restart apache2 Download 0.63 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling