Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet468/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   464   465   466   467   468   469   470   471   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 364 
]
There's one more additional step we should perform for setting this up properly. At 
this point, our certificate files should be properly installed, but we'll need to inform 
Apache of when to apply them. If you recall, the 
default-ssl.conf
 file provided by 
the 
apache2
 package is answering requests for any traffic not otherwise identified by 
a virtual host (the 

 option). We will need to ensure our 
web server is handling traffic for our existing websites when TLS is requested. We 
can add a 
ServerName
 option to that file to ensure our site supports TLS.
Add the following option to the 
/etc/apache2/sites-available/default-ssl.conf
 
file, right underneath 

:
ServerName mydomain.com:443 
Now, when traffic comes into your server on port 
443
 requesting a domain that 
matches the domain you typed for the 
ServerName
 option, it should result in a secure 
browsing session for the client. You should see the green padlock icon in the address 
bar (this depends on your browser), which indicates your session is secured. If you're 
using self-signed certificates, you'll probably see an error you'll have to skip through 
first, and you may not get the green padlock icon. This doesn't mean the encryption 
isn't working; it just means your browser is skeptical of the certificate since it wasn't 
signed by a known certificate authority. Your session will still be encrypted.
If you are planning on hosting multiple websites over HTTPS, you may want to 
consider using a separate virtual host file for each. An easy way to accomplish this is 
to use the 
/etc/apache2/sites-available/default-ssl.conf
 file as a template and 
change 
DocumentRoot
 to the directory that hosts the files for that site. In addition, be 
sure to update the 
SSLCertificateFile
 and 
SSLCertificateKeyFile
 options to point 
to the certificate files for the site and set 
ServerName
 to the domain that corresponds 
to your site. Here's an
 example virtual host file for
 a hypothetical site that uses TLS. 
I've highlighted lines that I've changed from the normal 
default-ssl.conf
 file:
 
         
                ServerName acmeconsulting.com:443 
 
                ServerAdmin webmaster@localhost 
 
                DocumentRoot /var/www/acmeconsulting 

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   464   465   466   467   468   469   470   471   ...   482




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

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish