Apache httpd: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
m moved Apache to software/Apache: disambiguation
extracted SSL stuff to subpage
Line 1: Line 1:
<hide>
[[subject::Apache web server]]
[[category:software]]
</hide>
==About==
==About==
[[category:software]]This page is about the [[Apache]] web server. (Maybe it should be renamed "Apache web server" or "Apache HTTP Server" at some point, with "Apache" being a disambiguation page.){{seed}}
This page is about the Apache web server software.
===Subpages===
* [[/SSL]]: configuring Apache to serve [[https]] ([[secure sockets layer|SSL]])
===Related Pages===
===Related Pages===
* [[Apache and PHP]]
* [[Apache and PHP]]
==Notes==
To get SSL working with virtual hosting (or at all, really), I had to do the following:
* in [[apache2.conf]]:
# added above the "Include /etc/apache2/sites-enabled/" line:
NameVirtualHost *:443
# added below it:
SSLProtocol -all +TLSv1 +SSLv3
SSLCertificateFile /etc/apache2/certs/server.crt
SSLCertificateKeyFile /etc/apache2/certs/server.key
* in [[ports.conf]]:
<IfModule mod_ssl.c>
    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443 https
</IfModule>
* Pick which domain to serve for [[https]] requests, and add to that site's config file:
<VirtualHost *:443>
        SSLEngine on
        (copy of essential stuff from <VirtualHost:*>)
</VirtualHost>
* (and finally...) Remember to forward port 443 on the router.
===useful diagnostics===
===useful diagnostics===
To see accesses to your Apache server in more-or-less real-time, run the following from your Apache logfile directory:
To see all accesses to your Apache server in more-or-less real-time, run the following from your Apache logfile directory:
  find . -name "*.log" | xargs tail -f
  find . -name "*.log" | xargs tail -f
==Links==
==Links==
===Official===
===Official===
* [http://httpd.apache.org Apache HTTP Server homepage]
* [http://httpd.apache.org Apache HTTP Server homepage]

Revision as of 13:12, 12 April 2012

<hide> subject::Apache web server </hide>

About

This page is about the Apache web server software.

Subpages

useful diagnostics

To see all accesses to your Apache server in more-or-less real-time, run the following from your Apache logfile directory:

find . -name "*.log" | xargs tail -f

Official