Changes between Version 7 and Version 8 of secureweb


Ignore:
Timestamp:
Nov 29, 2016, 8:24:04 AM (9 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • secureweb

    v7 v8  
    218218Do a nslookup for www.yourdomain.ws.learn.ac.lkand find the IP Addressof yourweb server and edit your pc host file and include following.(assume your IP is 192.248.X.X)
    219219{{{
    220 192.248.X.Xweb1.yourdomain.ws.learn.ac.lk
    221 192.248.X.Xweb2.yourdomain.ws.learn.ac.lk
     220192.248.X.X  web1.yourdomain.ws.learn.ac.lk
     221192.248.X.X  web2.yourdomain.ws.learn.ac.lk
    222222}}}
    223223'''Note''':
     
    252252ServerAdmin admin@yourdomain.ws.learn.ac.lk
    253253ServerName yourdomain.ws.learn.ac.lk
    254 ServerAlias web2.yourdomain.ws.learn.ac.lkDocumentRoot /var/www/web2
     254ServerAlias web2.yourdomain.ws.learn.ac.lk
     255DocumentRoot /var/www/web2
    255256<Directory /var/www/web2>
    256257Require all granted
     
    385386         </Directory>
    386387         ErrorLog ${APACHE_LOG_DIR}/error.log
    387          CustomLog ${APACHE_LOG_DIR}/access.log
    388          combinedSSLEngine on
     388         CustomLog ${APACHE_LOG_DIR}/access.log combined
     389         SSLEngine on
    389390         SSLCertificateFile      /etc/ssl/certs/apache_crt.crt
    390391         SSLCertificateKeyFile /etc/ssl/private/apache_prv.key
     
    401402{{{
    402403sudo a2enmod ssl
    403 sudo a2ensiteweb1-ssl.conf
     404sudo a2ensite web1-ssl.conf
    404405}}}
    405406Try browsing https://web1.yourdomain.ws.learn.ac.lk, you will be warned about the untrusted connection as it is a self-signed authentication.