Changes between Version 17 and Version 18 of howto/Apache2


Ignore:
Timestamp:
Oct 23, 2017, 7:01:05 PM (7 years ago)
Author:
Schamschula (Marius Schamschula)
Comment:

Added notes about copying the .conf.orig files. Removed symlink for manual

Legend:

Unmodified
Added
Removed
Modified
  • howto/Apache2

    v17 v18  
    147147=== User directories === #userdir
    148148
     149First, install the {{{httpd-userdir.conf}}} file:
     150
     151{{{
     152sudo cp /opt/local/etc/apache2/extra/httpd-userdir.conf.orig /opt/local/etc/apache2/extra/httpd-userdir.conf
     153}}}
     154
    149155If you would like to be able to access web pages in the Sites directory of your home directory, edit `/opt/local/etc/apache2/httpd.conf` and locate the following line:
    150156
     
    184190}}}
    185191
     192Then install the {{{httpd-manual.conf}}} file:
     193
     194{{{
     195sudo cp /opt/local/etc/apache2/extra/httpd-manual.conf.orig /opt/local/etc/apache2/extra/httpd-manual.conf
     196}}}
     197
    186198After 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.
    187199
     
    193205
    194206You can then view the manual by accessing http://localhost/manual/.
    195 
    196 NOTE: This option expects ''"/opt/local/www/apache2/manual"'' to be accessible under "<Document Root>." This can be accomplished by
    197 {{{
    198 $ cd <Document Root>
    199 $ ln -s /opt/local/www/apache2/manual
    200 }}}
    201 and then accessing: ''http://<servername>/manual/''
    202207
    203208=== Apache SSL/TLS Encryption (aks Secure Sockets  or https) === #ssl
     
    305310This is because the SSL Virtual Host has not been configured in ''"/opt/local/etc/apache2/extra/httpd-ssl.conf"''
    306311
     312Install the {{{httpd-ssl.conf}}} file:
     313
     314{{{
     315sudo cp /opt/local/etc/apache2/extra/httpd-ssl.conf.orig /opt/local/etc/apache2/extra/httpd-ssl.conf
     316}}}
     317
    307318Edit ''"/opt/local/etc/apache2/extra/httpd-ssl.conf"'' and moved down to the section:
    308319{{{
     
    316327Configure this section appropriately. \\
    317328Assuming you wish to implement SSL on your entire server, ''DocumentRoot'' and ''ServerName'' should match the values in ''"/opt/local/apache2/conf/httpd.conf"''\\
    318 As there are many optional ways of configuring security on your web server, consult the Apache2 manual for details.
    319 {{{
    320 http://httpd.apache.org/docs/2.4/ssl/
    321 }}}
     329As there are many optional ways of configuring security on your web server, consult the Apache2 manual for details: http://httpd.apache.org/docs/2.4/ssl/
     330
    322331
    323332After 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.