]> granicus.if.org Git - apache/blob - docs/manual/mod/mod_actions.html.de
ca3c2a484e26c4a86a2b6124a1361ea64e62b27e
[apache] / docs / manual / mod / mod_actions.html.de
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"><head>
4 <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
5 <!--
6         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7               This file is generated from xml source: DO NOT EDIT
8         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
9       -->
10 <title>mod_actions - Apache HTTP Server Version 2.5</title>
11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
13 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
14 <script src="../style/scripts/prettify.min.js" type="text/javascript">
15 </script>
16
17 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
18 <body>
19 <div id="page-header">
20 <p class="menu"><a href="../mod/">Module</a> | <a href="../mod/quickreference.html">Direktiven</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossar</a> | <a href="../sitemap.html">Seitenindex</a></p>
21 <p class="apache">Apache HTTP Server Version 2.5</p>
22 <img alt="" src="../images/feather.png" /></div>
23 <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
24 <div id="path">
25 <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP-Server</a> &gt; <a href="http://httpd.apache.org/docs/">Dokumentation</a> &gt; <a href="../">Version 2.5</a> &gt; <a href="./">Module</a></div>
26 <div id="page-content">
27 <div id="preamble"><h1>Apache-Modul mod_actions</h1>
28 <div class="toplang">
29 <p><span>Verfügbare Sprachen: </span><a href="../de/mod/mod_actions.html" title="Deutsch">&nbsp;de&nbsp;</a> |
30 <a href="../en/mod/mod_actions.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
31 <a href="../fr/mod/mod_actions.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
32 <a href="../ja/mod/mod_actions.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
33 <a href="../ko/mod/mod_actions.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
34 </div>
35 <div class="outofdate">Diese Übersetzung ist möglicherweise
36             nicht mehr aktuell. Bitte prüfen Sie die englische Version auf
37             die neuesten Änderungen.</div>
38 <table class="module"><tr><th><a href="module-dict.html#Description">Beschreibung:</a></th><td>Dieses Modul ermöglicht die Ausführung von CGI-Skripten
39   in Abhängigkeit von Medientypen und Anfragemethoden.</td></tr>
40 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Basis</td></tr>
41 <tr><th><a href="module-dict.html#ModuleIdentifier">Modulbezeichner:</a></th><td>actions_module</td></tr>
42 <tr><th><a href="module-dict.html#SourceFile">Quelltext-Datei:</a></th><td>mod_actions.c</td></tr></table>
43 <h3>Zusammenfassung</h3>
44
45     <p>Das Modul besitzt zwei Direktiven. Die Direktive <code class="directive"><a href="#action">Action</a></code> erlaubt die Ausführung von 
46       CGI-Skripten immer dann, wenn eine Anfrage zu einem bestimmten <a class="glossarylink" href="../glossary.html#mime-type" title="siehe Glossar">MIME-Type</a> erfolgt. Die Direktive <code class="directive"><a href="#script">Script</a></code> erlaubt die Ausführung von
47       CGI-Skripten abhängig von einer bestimmten Methode, die in der
48       Anfrage verwendet wird. Dies macht es deutlich einfacher, Skripte
49       auszuführen, die Dateien verarbeiten.</p>
50 </div>
51 <div id="quickview"><h3 class="directives">Direktiven</h3>
52 <ul id="toc">
53 <li><img alt="" src="../images/down.gif" /> <a href="#action">Action</a></li>
54 <li><img alt="" src="../images/down.gif" /> <a href="#script">Script</a></li>
55 </ul>
56 <h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&amp;list_id=144532&amp;product=Apache%20httpd-2&amp;query_format=specific&amp;order=changeddate%20DESC%2Cpriority%2Cbug_severity&amp;component=mod_actions">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&amp;component=mod_actions">Report a bug</a></li></ul><h3>Siehe auch</h3>
57 <ul class="seealso">
58 <li><code class="module"><a href="../mod/mod_cgi.html">mod_cgi</a></code></li>
59 <li><a href="../howto/cgi.html">Dynamische Inhalte mit CGI</a></li>
60 <li><a href="../handler.html">Die Verwendung von Handlern</a></li>
61 <li><a href="#comments_section">Kommentare</a></li></ul></div>
62
63 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
64 <div class="directive-section"><h2><a name="Action" id="Action">Action</a>-<a name="action" id="action">Direktive</a></h2>
65 <table class="directive">
66 <tr><th><a href="directive-dict.html#Description">Beschreibung:</a></th><td>Aktiviert ein CGI-Skript für einen bestimmten Handler oder
67   Content-Type</td></tr>
68 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Action <var>Aktionsart</var> <var>CGI-Skript</var> [virtual]</code></td></tr>
69 <tr><th><a href="directive-dict.html#Context">Kontext:</a></th><td>Serverkonfiguration, Virtual Host, Verzeichnis, .htaccess</td></tr>
70 <tr><th><a href="directive-dict.html#Override">AllowOverride:</a></th><td>FileInfo</td></tr>
71 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Basis</td></tr>
72 <tr><th><a href="directive-dict.html#Module">Modul:</a></th><td>mod_actions</td></tr>
73 <tr><th><a href="directive-dict.html#Compatibility">Kompatibilität:</a></th><td>Der Schalter <code>virtual</code> und die Übergabe des 
74   Handlers wurden in Apache 2.1 eingeführt.</td></tr>
75 </table>
76     <p>Die Direktive fügt eine Aktion hinzu, welche das
77       <var>CGI-Skript</var> aktiviert, sobald die <var>Aktionsart</var> durch
78       eine Anfrage ausgelöst wird. <var>CGI-Skript</var> ist der URL-Pfad
79       zu einer Ressource, die unter Verwendung von <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> oder <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code> als CGI-Skript gekennzeichnet
80       wurde. Die <var>Aktionsart</var> kann entweder ein <a href="../handler.html">Handler</a> oder ein <a class="glossarylink" href="../glossary.html#mime-type" title="siehe Glossar">MIME-Type</a> sein. Die URL und
81       den Dateipfad des angeforderten Dokuments in den 
82       Standard-CGI-Umgebungsvariablen <code>PATH_INFO</code> und
83       <code>PATH_TRANSLATED</code> übergeben. Der für die jeweilige 
84       Anfrage verwendete Handler wird in der Umgebungsvariablen
85       <code>REDIRECT_HANDLER</code> übergeben.</p>
86
87     <div class="example"><h3>Beispiele</h3><p><code>
88       # Anfragen für Dateien eines bestimmten MIME-Types:<br />
89       Action image/gif /cgi-bin/images.cgi<br />
90       <br />
91       # Dateien einer bestimmten Dateiendung<br />
92       AddHandler my-file-type .xyz<br />
93       Action my-file-type /cgi-bin/program.cgi<br />
94     </code></p></div>
95
96     <p>Im ersten Beispiel werden Anfragen für Dateien mit dem MIME-Type
97       <code>image/gif</code> von dem angegebenen CGI-Skript
98       <code>/cgi-bin/images.cgi</code> bearbeitet.</p>
99
100     <p>Im zweiten Beispiel werden Anfragen für Dateien mit der Dateiendung
101       <code>.xyz</code> von dem angegebenen CGI-Skript 
102       <code>/cgi-bin/program.cgi</code> bearbeitet.</p>
103
104     <p>Der optionale Schalter <code>virtual</code> deaktiviert die Prüfung
105       auf Existenz der angeforderten Datei. Dies ist beispielsweise 
106       nützlich, wenn Sie die Direktive <code class="directive">Action</code> in 
107       Verbindung mit virtuellen Adressräumen verwenden möchten.</p> 
108
109     <div class="example"><h3>Beispiel</h3><p><code>
110       &lt;Location /news&gt;<br />
111       <span class="indent">
112         SetHandler news-handler<br />
113         Action news-handler /cgi-bin/news.cgi virtual<br />
114       </span>
115       &lt;/Location&gt;
116     </code></p></div>
117
118 <h3>Siehe auch</h3>
119 <ul>
120 <li><code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code></li>
121 </ul>
122 </div>
123 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
124 <div class="directive-section"><h2><a name="Script" id="Script">Script</a>-<a name="script" id="script">Direktive</a></h2>
125 <table class="directive">
126 <tr><th><a href="directive-dict.html#Description">Beschreibung:</a></th><td>Aktiviert ein CGI-Skript für eine bestimmte 
127   Anfragemethode.</td></tr>
128 <tr><th><a href="directive-dict.html#Syntax">Syntax:</a></th><td><code>Script <var>Methode</var> <var>CGI-Skript</var></code></td></tr>
129 <tr><th><a href="directive-dict.html#Context">Kontext:</a></th><td>Serverkonfiguration, Virtual Host, Verzeichnis</td></tr>
130 <tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Basis</td></tr>
131 <tr><th><a href="directive-dict.html#Module">Modul:</a></th><td>mod_actions</td></tr>
132 </table>
133   <p>Die Direktive fügt eine Aktion hinzu, welche das
134     <var>CGI-Skript</var> aktiviert, wenn eine Datei unter der Verwendung der
135     Methode <var>Methode</var> angefordert wird. <var>CGI-Skript</var> ist der 
136     URL-Pfad zu einer Ressource, die unter Verwendung von <code class="directive"><a href="../mod/mod_alias.html#scriptalias">ScriptAlias</a></code> oder <code class="directive"><a href="../mod/mod_mime.html#addhandler">AddHandler</a></code> als CGI-Skript gekennzeichnet
137     wurde. Die URL und der Dateipfad des angeforderten Dokuments werden in den
138     Standard-CGI-Umgebungsvariablen <code>PATH_INFO</code> und
139     <code>PATH_TRANSLATED</code> übergeben.</p>
140
141     <div class="note">
142       Der Methodenname kann frei gewählt werden. Bei <strong>Methodennamen
143       wird zwischen Groß- und Kleinschreibung</strong> unterschieden, so
144       dass <code>Script PUT</code> und <code>Script put</code> zu vollkommen
145       unterschiedlichen Ergebnissen führen.
146     </div>
147
148     <p>Beachten Sie, dass der <code class="directive">Script</code>-Befehl nur
149       Voreinstellungen für Aktionen definiert. Wird ein CGI-Skript
150       - oder eine andere Ressource, die in der Lage ist, die angeforderte 
151       Methode intern zu bearbeiten - aufgerufen, so wird diese(s) verwendet.
152       Beachten Sie auch, dass <code class="directive">Script</code> mit der Methode
153       <code>GET</code> nur dann aufgerufen wird, wenn Query-Argumente vorhanden
154       sind (<em>z.B.</em> foo.html?hi). Andernfalls wird die Anfrage normal
155       bearbeitet.</p>
156
157     <div class="example"><h3>Beispiele</h3><p><code>
158       # Für &lt;ISINDEX&gt;-ähnliches Suchen<br />
159       Script GET /cgi-bin/search<br />
160       <br />
161       # Ein CGI-PUT-Handler<br />
162       Script PUT /~bob/put.cgi<br />
163     </code></p></div>
164
165 </div>
166 </div>
167 <div class="bottomlang">
168 <p><span>Verfügbare Sprachen: </span><a href="../de/mod/mod_actions.html" title="Deutsch">&nbsp;de&nbsp;</a> |
169 <a href="../en/mod/mod_actions.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
170 <a href="../fr/mod/mod_actions.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
171 <a href="../ja/mod/mod_actions.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
172 <a href="../ko/mod/mod_actions.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
173 </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Kommentare</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
174 <script type="text/javascript"><!--//--><![CDATA[//><!--
175 var comments_shortname = 'httpd';
176 var comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_actions.html';
177 (function(w, d) {
178     if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
179         d.write('<div id="comments_thread"><\/div>');
180         var s = d.createElement('script');
181         s.type = 'text/javascript';
182         s.async = true;
183         s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
184         (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
185     }
186     else {
187         d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
188     }
189 })(window, document);
190 //--><!]]></script></div><div id="footer">
191 <p class="apache">Copyright 2016 The Apache Software Foundation.<br />Lizenziert unter der <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
192 <p class="menu"><a href="../mod/">Module</a> | <a href="../mod/quickreference.html">Direktiven</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossar</a> | <a href="../sitemap.html">Seitenindex</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
193 if (typeof(prettyPrint) !== 'undefined') {
194     prettyPrint();
195 }
196 //--><!]]></script>
197 </body></html>