1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
|
<!--#if expr="$FAQMASTER" -->
<!--#set var="STANDALONE" value="" -->
<!--#set var="INCLUDED" value="YES" -->
<!--#if expr="$QUERY_STRING = TOC" -->
<!--#set var="TOC" value="YES" -->
<!--#set var="CONTENT" value="" -->
<!--#else -->
<!--#set var="TOC" value="" -->
<!--#set var="CONTENT" value="YES" -->
<!--#endif -->
<!--#else -->
<!--#set var="STANDALONE" value="YES" -->
<!--#set var="INCLUDED" value="" -->
<!--#set var="TOC" value="" -->
<!--#set var="CONTENT" value="" -->
<!--#endif -->
<!--#if expr="$STANDALONE" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>Apache Server Frequently Asked Questions</title>
</head>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#000080" alink="#FF0000">
<!--#include virtual="../header_l2.html" -->
<h1 align="CENTER">Apache Server Frequently Asked
Questions</h1>
<p>$Revision: 1.99 $ ($Date: 2010/12/10 10:13:45 $)</p>
<p><b>Please note that this document refers to a version of the
product which has been deprecated, and declared "end of life", in
favor of the <a href="http://httpd.apache.org/docs/current">more recent
version of the server</a>. Information obtained here is likely to be
outdated and inaccurate.</b></p>
<p>The latest version of this FAQ is available on the HTTP Server
Wiki, at <<a href="http://wiki.apache.org/httpd/FAQ" rel="Help"
><samp>http://httpd.apache.org/docs/1.3/misc/FAQ.html</samp></a>>.
This version is no longer maintained, and contains inaccurate
and grossly outdated information.</p>
<!-- Notes about changes: Don't make any. Make them in the wiki. -->
<h2>The Questions</h2>
<ol type="A">
<!--#endif -->
<!--#if expr="$TOC || $STANDALONE" -->
<li value="9">
<strong>Features</strong>
<ol>
<li><a href="#proxy">Does or will Apache act as a Proxy
server?</a></li>
<li><a href="#multiviews">What are "multiviews"?</a></li>
<li><a href="#putsupport">Why can't I publish to my
Apache server using PUT on Netscape Gold and other
programs?</a></li>
<li><a href="#SSL-i">Why doesn't Apache include
SSL?</a></li>
<li><a href="#footer">How can I attach a footer to my
documents without using SSI?</a></li>
<li><a href="#search">Does Apache include a search
engine?</a></li>
<li><a href="#rotate">How can I rotate my log
files?</a></li>
<li><a href="#conditional-logging">How do I keep certain
requests from appearing in my logs?</a></li>
<li><a href="#dbinteg">Does Apache include any sort of
database integration?</a></li>
<li><a href="#asp">Can I use Active Server Pages (ASP)
with Apache?</a></li>
<li><a href="#java">Does Apache come with Java
support?</a></li>
</ol>
</li>
<!--#endif -->
<!--#if expr="$STANDALONE" -->
</ol>
<hr />
<h2>The Answers</h2>
<!--#endif -->
<!--#if expr="! $TOC" -->
<h3>I. Features</h3>
<ol>
<li>
<a id="proxy" name="proxy"><strong>Does or will Apache act
as a Proxy server?</strong></a>
<p>Apache version 1.1 and above comes with a <a
href="../mod/mod_proxy.html">proxy module</a>. If compiled
in, this will make Apache act as a caching-proxy
server.</p>
<hr />
</li>
<li>
<a id="multiviews" name="multiviews"><strong>What are
"multiviews"?</strong></a>
<p>"Multiviews" is the general name given to the Apache
server's ability to provide language-specific document
variants in response to a request. This is documented quite
thoroughly in the <a href="../content-negotiation.html"
rel="Help">content negotiation</a> description page. In
addition, <cite>Apache Week</cite> carried an article on
this subject entitled "<a
href="http://www.apacheweek.com/features/negotiation"
rel="Help"><cite>Content Negotiation
Explained</cite></a>".</p>
<hr />
</li>
<li>
<a id="putsupport" name="putsupport"><strong>Why can't I
publish to my Apache server using PUT on Netscape Gold and
other programs?</strong></a>
<p>Because you need to install and configure a script to
handle the uploaded files. This script is often called a
"PUT" handler. There are several available, but they may
have security problems. Using FTP uploads may be easier and
more secure, at least for now. For more information, see
the <cite>Apache Week</cite> article <a
href="http://www.apacheweek.com/features/put"><cite>Publishing
Pages with PUT</cite></a>.</p>
<hr />
</li>
<li>
<a id="SSL-i" name="SSL-i"><strong>Why doesn't Apache
include SSL?</strong></a>
<p>SSL (Secure Socket Layer) data transport requires
encryption, and many governments have restrictions upon the
import, export, and use of encryption technology. If Apache
included SSL in the base package, its distribution would
involve all sorts of legal and bureaucratic issues, and it
would no longer be freely available. Also, some of the
technology required to talk to current clients using SSL is
patented by <a href="http://www.rsa.com/">RSA Data
Security</a>, who restricts its use without a license.</p>
<p>You can find out more about this topic in the
<cite>Apache Week</cite> article about <a
href="http://www.apacheweek.com/features/ssl"
rel="Help"><cite>Apache and Secure
Transactions</cite></a>.</p>
<hr />
</li>
<li>
<a id="footer" name="footer"><strong>How can I attach a
footer to my documents without using SSI?</strong></a>
<p>You can make arbitrary changes to static documents by
configuring an <a
href="../mod/mod_actions.html#action">Action</a> which
launches a CGI script. The CGI is then responsible for
setting a content-type and delivering the requested
document (the location of which is passed in the
<samp>PATH_TRANSLATED</samp> environment variable), along
with whatever footer is needed.</p>
<p>Busy sites may not want to run a CGI script on every
request, and should consider using an Apache module to add
the footer. There are several third party modules available
through the <a href="http://modules.apache.org/">Apache
Module Registry</a> which will add footers to documents.
These include mod_trailer, PHP
(<samp>php3_auto_append_file</samp>), mod_layout, and
mod_perl (<samp>Apache::Sandwich</samp>).</p>
<hr />
</li>
<li>
<a id="search" name="search"><strong>Does Apache include a
search engine?</strong></a>
<p>Apache does not include a search engine, but there are
many good commercial and free search engines which can be
used easily with Apache. Some of them are listed on the <a
href="http://www.searchtools.com/tools/tools.html">Web Site
Search Tools</a> page. Open source search engines that are
often used with Apache include <a
href="http://www.htdig.org/">ht://Dig</a> and <a
href="http://sunsite.berkeley.edu/SWISH-E/">SWISH-E</a>.</p>
<hr />
</li>
<li>
<a id="rotate" name="rotate"><strong>How can I rotate my
log files?</strong></a>
<p>The simple answer: by piping the transfer log into an
appropriate log file rotation utility.</p>
<p>The longer answer: In the src/support/ directory, you
will find a utility called <a
href="../programs/rotatelogs.html">rotatelogs</a> which can
be used like this:</p>
<pre>
TransferLog "|/path/to/rotatelogs /path/to/logs/access_log 86400"
</pre>
<p>to enable daily rotation of the log files.<br />
A more sophisticated solution of a logfile rotation
utility is available under the name <code>cronolog</code>
from Andrew Ford's site at <a
href="http://www.cronolog.org/">http://www.cronolog.org/</a>.
It can automatically create logfile subdirectories based on
time and date, and can have a constant symlink point to the
rotating logfiles. (As of version 1.6.1, cronolog is
available under the <a href="../LICENSE">Apache
License</a>). Use it like this:</p>
<pre>
CustomLog "|/path/to/cronolog --symlink=/usr/local/apache/logs/access_log /usr/local/apache/logs/%Y/%m/access_log" combined
</pre>
<hr />
</li>
<li>
<a id="conditional-logging"
name="conditional-logging"><strong>How do I keep certain
requests from appearing in my logs?</strong></a>
<p>The maximum flexibility for removing unwanted
information from log files is obtained by post-processing
the logs, or using piped-logs to feed the logs through a
program which does whatever you want. However, Apache does
offer the ability to prevent requests from ever appearing
in the log files. You can do this by using the <a
href="../mod/mod_setenvif.html#setenvif"><code>SetEnvIf</code></a>
directive to set an environment variable for certain
requests and then using the conditional <a
href="../mod/mod_log_config.html#customlog-conditional"><code>
CustomLog</code></a> syntax to prevent logging when the
environment variable is set.</p>
<hr />
</li>
<li>
<a id="dbinteg" name="dbinteg"><b>Does Apache support any
sort of database integration?</b></a>
<p>No. Apache is a Web (HTTP) server, not an application
server. The base package does not include any such
functionality. See the <a href="http://www.php.net/">PHP
project</a> and the <a
href="http://perl.apache.org/">mod_perl project</a> for
examples of modules that allow you to work with databases
from within the Apache environment.</p>
<hr />
</li>
<li>
<a id="asp" name="asp"><b>Can I use Active Server Pages
(ASP) with Apache?</b></a>
<p>The base Apache Web Server package does not include ASP
support. However, a number of projects provide ASP or
ASP-like functionality for Apache. Some of these are:</p>
<ul>
<li><a
href="http://www.apache-asp.org/">Apache::ASP</a></li>
<li><a
href="http://go-mono.com/archive/xsp-0.10.html">mod_mono</a></li>
</ul>
<p>See also the <a
href="http://httpd.apache.org/related_projects.html">related
projects</a> page to find out more.</p>
<hr />
</li>
<li>
<a id="java" name="java"><b>Does Apache come with Java
support?</b></a>
<p>The base Apache Web server package does not include
support for Java, Java Server Pages, Enterprise Java Beans,
or Java servlets. Those features are available as add-ons
from the Apache/Java project site, <URL:<a
href="http://jakarta.apache.org">http://jakarta.apache.org/</a>>.</p>
<hr />
</li>
</ol>
<!--#endif -->
<!--#if expr="$STANDALONE" -->
<!-- Don't forget to add HR tags at the end of each list item.. -->
<!--#include virtual="footer.html" -->
<!--#endif -->
</body>
</html>
|