Linux Server Configuration


$ sudo apt-get install libapache2-mod-auth-mysql


Download 493.5 Kb.
bet44/48
Sana16.06.2023
Hajmi493.5 Kb.
#1495871
1   ...   40   41   42   43   44   45   46   47   48
Bog'liq
0501-linux-server-configuration

$ sudo apt-get install libapache2-mod-auth-mysql
See the /etc/apache2/mods-available directory, for additional modules.
Use the a2enmod utility to enable a module:
$ sudo a2enmod auth_mysql
$ sudo /etc/init.d/apache2 restart
Similarly, a2dismod will disable a module:
$ sudo a2dismod auth_mysql
$ sudo /etc/init.d/apache2 restart
HTTPS Configuration
The mod_ssl module adds an important feature to the Apache2 server - the ability to encrypt communications. Thus, when your browser is communicating using SSL, the https:// prefix is used at the beginning of the Uniform Resource Locator (URL) in the browser navigation bar.
The mod_ssl module is available in apache2-common package. Execute the following command from a terminal prompt to enable the mod_ssl module:
$ sudo a2enmod ssl
There is a default HTTPS configuration file in /etc/apache2/sites-available/default-ssl. In order for Apache to provide HTTPS, a certificate and key file are also needed. The default HTTPS configuration will use a certificate and key generated by the ssl-cert package. They are good for testing, but the auto-generated certificate and key should be replaced by a certificate specific to the site or server.
To configure Apache for HTTPS, enter the following:
$ sudo a2ensite default-ssl

The directories /etc/ssl/certs and /etc/ssl/private are the default locations. If you install the certificate and key in another directory make sure to change SSLCertificateFile and SSLCertificateKeyFile appropriately.


With Apache now configured for HTTPS, restart the service to enable the new settings:
$ sudo /etc/init.d/apache2 restart

Depending on how you obtained your certificate you may need to enter a passphrase when Apache starts.


You can access the secure server pages by typing https://your_hostname/url/ in your browser address bar.



Download 493.5 Kb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   48




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling