Changes between Version 11 and Version 12 of howto/Apache2


Ignore:
Timestamp:
Jan 10, 2015, 11:47:52 AM (9 years ago)
Author:
whmagill
Comment:

upd

Legend:

Unmodified
Added
Removed
Modified
  • howto/Apache2

    v11 v12  
    264264At which point you can view the details of your certificate and select your appropriate actions.
    265265
     266==== Configure your "VIrtural Host" ====
     267While you have verified your certificate, you will discover that you have no access to your server - ''"You don't have permission to access.... on this server."''\\
     268This is because the SSL Virtual Host has not been configured in ''"/opt/local/apache2/conf/extra/httpd-ssl.conf"''
     269
     270Edit ''"/opt/local/apache2/conf/conf/extra/httpd-ssl.conf"'' and moved down to the section:
     271{{{
     272#   General setup for the virtual host
     273DocumentRoot "/opt/local/apache2/htdocs"
     274ServerName www.example.com:443
     275ServerAdmin you@example.com
     276ErrorLog "/opt/local/apache2/logs/error_log"
     277TransferLog "/opt/local/apache2/logs/access_log"
     278}}}
     279Configure this section appropriately. \\
     280Assuming you wish to implement SSL on your entire server, ''DocumentRoot'' and ''ServerName'' should match the values in ''"/opt/local/apache2/conf/httpd.conf"''\\
     281As there are many optional ways of configuring security on your web server, consult the Apache2 manual for details.
     282{{{
     283http://httpd.apache.org/docs/2.2/ssl/
     284}}}
     285
     286After each change to the config file, you should again verify the file syntax, and then you need to stop and restart Apache for the changes to take effect.
     287{{{
     288$ /opt/local/apache2/bin/apachectl -t
     289$ sudo port unload apache2
     290$ sudo port load apache2
     291}}}
    266292
    267293[wiki:howto <- Back to the HOWTO section]