Difference between revisions of "User:Aeric/Apache Notes"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>__TOC__</noinclude> | <noinclude>__TOC__</noinclude> | ||
===Commands=== | ====Commands==== | ||
RedHat commands worth knowing: | RedHat commands worth knowing: | ||
:* <tt>service httpd restart</tt> - Restart Apache (generally unnecessary. Sometimes useful, "just to be sure") | :* <tt>service httpd restart</tt> - Restart Apache (generally unnecessary. Sometimes useful, "just to be sure") | ||
:* <tt>service httpd reload</tt> - Reload the configuration files | :* <tt>service httpd reload</tt> - Reload the configuration files | ||
===mediawiki.conf=== | ====mediawiki.conf==== | ||
The configuration file for MediaWiki is <tt>/etc/httpd/conf.d. mediawiki.conf</tt>, where: | The configuration file for MediaWiki is <tt>/etc/httpd/conf.d. mediawiki.conf</tt>, where: | ||
:* '''etc''' (''eht-cee'') is the "et cetera" container for stuff added to the system | :* '''etc''' (''eht-cee'') is the "et cetera" container for stuff added to the system | ||
Line 11: | Line 11: | ||
:* '''conf.d''' is the directory of configuration files (all files in this directory are read by Apache when it starts or reloads.) | :* '''conf.d''' is the directory of configuration files (all files in this directory are read by Apache when it starts or reloads.) | ||
{{Important|<br>''All'' files in that directory are processed, so make backup files elsewhere.}} | |||
====About that query string==== | |||
===About that query string=== | |||
;Motivation:Pages with plain names seem to work properly. The incoming link is converted to the short URL form, and TOC entries have that form, as well. | ;Motivation:Pages with plain names seem to work properly. The incoming link is converted to the short URL form, and TOC entries have that form, as well. | ||
Latest revision as of 22:43, 4 September 2013
Commands
RedHat commands worth knowing:
- service httpd restart - Restart Apache (generally unnecessary. Sometimes useful, "just to be sure")
- service httpd reload - Reload the configuration files
mediawiki.conf
The configuration file for MediaWiki is /etc/httpd/conf.d. mediawiki.conf, where:
- etc (eht-cee) is the "et cetera" container for stuff added to the system
- httpd is the HTTP Daemon (Apache)
- conf.d is the directory of configuration files (all files in this directory are read by Apache when it starts or reloads.)
About that query string
- Motivation
- Pages with plain names seem to work properly. The incoming link is converted to the short URL form, and TOC entries have that form, as well.
- But bookmarks that go to old pages that have :, /, or ! in them don't get a URL rewrite, because those characters don't seem to be handled by the URL-segment-at-a-time matching rules. (They must be MediaWiki matching rules, because Apache is *not* doing the redirect. MediaWiki is.)
- Idea
- We could make a redirect.php page that parses the query string, creates the new URL, and sends a 301-redirect back to the browser. That would be cool. But it's a fair amount of work for a few special pages that, over time, will no longer be bookmarked.