Difference between revisions of "Apache httpd"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (→‎Official: old URL was for all Apache projects)
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
* [[/mod_rewrite]]
 
* [[/mod_rewrite]]
 
* [[/SSL]]: configuring Apache to serve [[https]] ([[secure sockets layer|SSL]])
 
* [[/SSL]]: configuring Apache to serve [[https]] ([[secure sockets layer|SSL]])
 +
* [[/variables]]: the <code>${varname}</code> syntax in Apache's config files
  
 
===Related Pages===
 
===Related Pages===
Line 18: Line 19:
 
===useful commands===
 
===useful commands===
 
* <code>[[apachectl]]</code>
 
* <code>[[apachectl]]</code>
 +
** <code>apachectl configtest</code> tests the current configuration without trying to load it (which could result in Apache not running), and gives diagnostic information
 
* <code>[[a2enmod]] {{arg|module_name}}</code> enables a module
 
* <code>[[a2enmod]] {{arg|module_name}}</code> enables a module
 
* <code>[[a2dismod]] {{arg|module_name}}</code> disables a module
 
* <code>[[a2dismod]] {{arg|module_name}}</code> disables a module
Line 31: Line 33:
 
===Official===
 
===Official===
 
* [http://httpd.apache.org home page]
 
* [http://httpd.apache.org home page]
** [https://cwiki.apache.org/confluence/ wiki]
+
** [https://cwiki.apache.org/confluence/display/HTTPD/ wiki]

Latest revision as of 15:18, 1 April 2022

About

This page is about the Apache web server software.

Subpages

Related Pages

useful commands

  • apachectl
    • apachectl configtest tests the current configuration without trying to load it (which could result in Apache not running), and gives diagnostic information
  • a2enmod <module_name> enables a module
  • a2dismod <module_name> disables a module
  • apache2_invoke: just noticed this in an update, not sure what it does (something like a2enmod?)

Enabling a module is usually just a matter of making links from the module's configuration files (sometimes there is more than one file) in /mods-available and putting them in /mods-enabled, but this is a safe and quick way to make sure that all the necessary files are linked.

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

Note that if you are using Virtualmin to configure Apache, logfiles for the domains will probably be in /var/log/virtualmin.

Links

Official