Changes between Version 17 and Version 18 of howto/Apache2
- Timestamp:
- Oct 23, 2017, 7:01:05 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/Apache2
v17 v18 147 147 === User directories === #userdir 148 148 149 First, install the {{{httpd-userdir.conf}}} file: 150 151 {{{ 152 sudo cp /opt/local/etc/apache2/extra/httpd-userdir.conf.orig /opt/local/etc/apache2/extra/httpd-userdir.conf 153 }}} 154 149 155 If 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: 150 156 … … 184 190 }}} 185 191 192 Then install the {{{httpd-manual.conf}}} file: 193 194 {{{ 195 sudo cp /opt/local/etc/apache2/extra/httpd-manual.conf.orig /opt/local/etc/apache2/extra/httpd-manual.conf 196 }}} 197 186 198 After 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. 187 199 … … 193 205 194 206 You 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 by197 {{{198 $ cd <Document Root>199 $ ln -s /opt/local/www/apache2/manual200 }}}201 and then accessing: ''http://<servername>/manual/''202 207 203 208 === Apache SSL/TLS Encryption (aks Secure Sockets or https) === #ssl … … 305 310 This is because the SSL Virtual Host has not been configured in ''"/opt/local/etc/apache2/extra/httpd-ssl.conf"'' 306 311 312 Install the {{{httpd-ssl.conf}}} file: 313 314 {{{ 315 sudo cp /opt/local/etc/apache2/extra/httpd-ssl.conf.orig /opt/local/etc/apache2/extra/httpd-ssl.conf 316 }}} 317 307 318 Edit ''"/opt/local/etc/apache2/extra/httpd-ssl.conf"'' and moved down to the section: 308 319 {{{ … … 316 327 Configure this section appropriately. \\ 317 328 Assuming 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 }}} 329 As 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 322 331 323 332 After 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.