Birmingham mumbai


ErrorLog ${APACHE_LOG_DIR}/acmeconsulting.com-error.log



Download 15,21 Mb.
Pdf ko'rish
bet469/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   465   466   467   468   469   470   471   472   ...   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)

                ErrorLog ${APACHE_LOG_DIR}/acmeconsulting.com-error.log 
                CustomLog ${APACHE_LOG_DIR}/acmeconsulting.com-access. 
                log combined 
 
                SSLEngine on 


Chapter 14
[
 365 
]
        SSLCertificateFile      /etc/apache2/certs/acmeconsulting/acme. 
        crt 
        SSLCertificateKeyFile /etc/apache2/certs/acmeconsulting/acme. 
        key 
 
                 
                                SSLOptions +StdEnvVars 
               
 
                 
                                SSLOptions +StdEnvVars 
               
 
 
         
 
Basically, what I did was create a new virtual host configuration file (using the 
existing 
default-ssl.conf
 file as a template). I called this new file 
acme-consulting.
conf
 and I stored it in the 
/etc/apache2/sites-available
 directory. I changed the 
VirtualHost
 line to listen for anything coming in on port 
443
. The line 
ServerName 
acmeconsulting.com:443
 was added to make this file responsible for traffic coming 
in looking for 
acmeconsulting.com
 on port 
443
. I also set 
DocumentRoot
 to 
/var/www/
acmeconsulting
. In addition, I customized the error and access logs so that it will be 
easier to find log messages relating to this new site, since its log entries will go to 
their own specific files.
In my experience, I find that a modular approach, such as what I've done with the 
sample virtual host file for HTTPS, works best when setting up a web server that's 
intended to host multiple websites. With each site, I'll typically give it its own 
document root, certificate files, and log files. Even if you're only planning on hosting 
a single site on your server, using this modular approach is still a good idea, since 
you may want to host additional sites later on.
So, there you have it. You should now understand how to set up secure virtual hosts 
in Apache. However, security doesn't equal redundancy.

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   465   466   467   468   469   470   471   472   ...   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