Answer the question
In order to leave comments, you need to log in
Apache 2 - Installing an SSL certificate?
Friends need your help in installing a certificate on a web server to activate https
Apache 2.4 + PHP7 + MYSQL is installed - everything works fine on port 80.
Wirth config. host like this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/ustim.ru/httpd
ServerName ustim.mooo.com
ServerAlias www.ustim.mooo.com
<Directory /var/www/ustim.ru/httpd>
Options -Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ustim.crt
SSLCertificateKeyFile /etc/apache2/ssl/ustim.key
ServerAdmin [email protected]
DocumentRoot /var/www/ustim.ru/httpd
ServerName ustim.mooo.com
ServerAlias www.ustim.mooo.com
<Directory /var/www/ustim.ru/httpd>
Options -Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question