Affiliate Marketing
Pls Subscribe this channel Subscribe ® Registered teknosys.in
httpd.conf. Because it's a system file, you will need to use sudo again:$ sudo nano /etc/apache2/httpd.conf
socache_shmcb_module, ssl_module, and also the include for the httpd-ssl.conf by removing the leading # symbol on those lines:LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so
...
LoadModule ssl_module libexec/apache2/mod_ssl.so
...
Include /private/etc/apache2/extra/httpd-ssl.conf
/etc/apache2/extra/httpd-vhosts.conf.$ sudo nano /etc/apache2/extra/httpd-vhosts.conf
DocumentRoot "/Users/your_user/Sites"
ServerName localhost
SSLEngine on
SSLCertificateFile "/private/etc/apache2/server.crt"
SSLCertificateKeyFile "/private/etc/apache2/server.key"
return to accept$ cd /etc/apache2
$ sudo ssh-keygen -f server.key
$ sudo openssl req -new -key server.key -out server.csr
$ sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
$ sudo openssl rsa -in server.key -out server.key
$ sudo apachectl configtest
$ sudo apachectl -k restart
Comments