From: Ken Coar type-map
; this is best done
with
AddHandler type-map .var+
AddHandler type-map .var
in the server configuration file.
@@ -232,7 +232,7 @@ Negotiation named by theDirectoryIndex
directive, if the
server is trying to index a directory. If the configuration files
specify
-DirectoryIndex index+
DirectoryIndex index
then the server will arbitrate between index.html
and index.html3
if both are present. If neither
diff --git a/docs/manual/content-negotiation.html.fr b/docs/manual/content-negotiation.html.fr
index f296bc028c..d6a7920551 100644
--- a/docs/manual/content-negotiation.html.fr
+++ b/docs/manual/content-negotiation.html.fr
@@ -27,6 +27,8 @@
ko |
tr
Apache HTTPD supporte la négociation de
diff --git a/docs/manual/content-negotiation.xml.fr b/docs/manual/content-negotiation.xml.fr
index fe3dcd0892..a9c384ee6b 100644
--- a/docs/manual/content-negotiation.xml.fr
+++ b/docs/manual/content-negotiation.xml.fr
@@ -3,7 +3,7 @@
-
+
+
+
+
- If you require even more advanced control over your authorization phases,
- you can add custom authz providers to help you manage your server. The
- example below shows you how you can split a single htpasswd file into
+ If you require even more advanced control over your authorization phases,
+ you can add custom authz providers to help you manage your server. The
+ example below shows you how you can split a single htpasswd file into
groups with different permissions:
- This is an example of how you can create a load balancing mechanism.
- In this example, we will be setting/getting the number of requests served
- by each backend using IVM variables, and preferring the backend with least
+ This is an example of how you can create a load balancing mechanism.
+ In this example, we will be setting/getting the number of requests served
+ by each backend using IVM variables, and preferring the backend with least
requests served in total:
SetEnvIf
and RewriteCond
will not see the
variables set with it.
-
- DirectoryIndex
+
+ DirectoryIndex
or generating a directory listing with mod_autoindex
,
- per-request environment variables are not inherited in the
- subrequest. Additionally,
+ per-request environment variables are not inherited in the
+ subrequest. Additionally,
SetEnvIf
directives
are not separately evaluated in the subrequest due to the API phases
mod_setenvif
takes action in.mod_headers
allows you to still accept
these headers:
# +# # The following works around a client sending a broken Accept_Encoding # header. # diff --git a/docs/manual/env.xml b/docs/manual/env.xml index d4375cf688..3cda1acc64 100644 --- a/docs/manual/env.xml +++ b/docs/manual/env.xml @@ -153,13 +153,13 @@SetEnvIf andRewriteCond will not see the variables set with it. - -
The following examples show how expressions might be used to evaluate requests:
@@ -533,7 +533,7 @@ listfunction ::= listfuncname "(" word ")"(" word ")"The following examples show how expressions might be used to evaluate requests:
@@ -586,7 +586,7 @@ listfunction ::= listfuncname "(" word ")" # Only allow access to this content during business hours <Directory "/foo/bar/business"> Require expr %{TIME_HOUR} -gt 9 && %{TIME_HOUR} -lt 17 -</Directory> +</Directory> # Check a HTTP header for a list of values <If "%{HTTP:X-example-header} in { 'foo', 'bar', 'baz' }"> diff --git a/docs/manual/handler.xml b/docs/manual/handler.xml index fd37d5603e..0600d3f203 100644 --- a/docs/manual/handler.xml +++ b/docs/manual/handler.xml @@ -156,8 +156,3 @@ AddHandler add-footer .html as to not invade the media type name-space.You can insert not
to negate a particular requirement.
- Note, that since a not
is a negation of a value, it cannot
+ Note, that since a not
is a negation of a value, it cannot
be used by itself to allow or deny a request, as not true
does not constitute false. Thus, to deny a visit using a negation,
the block must have one element that evaluates as true or false.
@@ -101,11 +101,12 @@ Require ip ip.address
Visitors coming from that address (10.252.46.165
)
- will not be able to see the content covered by this directive. If,
- instead, you have a machine name, rather than an IP address, you
+ will not be able to see the content covered by this directive. If,
+ instead, you have a machine name, rather than an IP address, you
can use that.
Require not host host.example.com+
Require not host host.example.com +
And, if you'd like to block access from an entire domain,
@@ -163,9 +164,9 @@ Require not host gov
and 6am, you can do this using mod_rewrite
.
RewriteEngine On -RewriteCond %{TIME_HOUR} >=20 [OR] -RewriteCond %{TIME_HOUR} <07 -RewriteRule ^/fridge - [F]+RewriteCond "%{TIME_HOUR}" ">=20" [OR] +RewriteCond "%{TIME_HOUR}" "<07" +RewriteRule "^/fridge" "-" [F]
This will return a 403 Forbidden response for any request after 8pm diff --git a/docs/manual/howto/access.html.fr b/docs/manual/howto/access.html.fr index 010d95d342..0e1e635021 100644 --- a/docs/manual/howto/access.html.fr +++ b/docs/manual/howto/access.html.fr @@ -24,6 +24,8 @@
Le contrôle d'accès fait référence à tout concept de contrôle d'accès à une ressource quelconque. Il est distinct du processus d'authentification et d'autorisation.
diff --git a/docs/manual/howto/access.xml b/docs/manual/howto/access.xml index f2242a1915..244bc1f1e7 100644 --- a/docs/manual/howto/access.xml +++ b/docs/manual/howto/access.xml @@ -172,9 +172,9 @@ Require expr %{HTTP_USER_AGENT} != 'BadBot'This will return a 403 Forbidden response for any request after 8pm
diff --git a/docs/manual/howto/access.xml.fr b/docs/manual/howto/access.xml.fr
index 518d9f8f3c..28088c4cc0 100644
--- a/docs/manual/howto/access.xml.fr
+++ b/docs/manual/howto/access.xml.fr
@@ -1,7 +1,7 @@
-
+
diff --git a/docs/manual/howto/access.xml.meta b/docs/manual/howto/access.xml.meta
index 605822ecb4..c42bb44f51 100644
--- a/docs/manual/howto/access.xml.meta
+++ b/docs/manual/howto/access.xml.meta
@@ -8,6 +8,6 @@
Require ip address+
Require ip address +
where address is an IP address (or a partial IP address) or:
-Require host domain_name+
Require host domain_name +
where domain_name is a fully qualified domain name
diff --git a/docs/manual/howto/auth.xml.fr b/docs/manual/howto/auth.xml.fr
index dc50e4cc02..f80cb393f1 100644
--- a/docs/manual/howto/auth.xml.fr
+++ b/docs/manual/howto/auth.xml.fr
@@ -1,7 +1,7 @@
-
+
diff --git a/docs/manual/howto/auth.xml.ja b/docs/manual/howto/auth.xml.ja
index 32cb4bbe6b..578700dd4d 100644
--- a/docs/manual/howto/auth.xml.ja
+++ b/docs/manual/howto/auth.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+
+
diff --git a/docs/manual/howto/public_html.xml.ja b/docs/manual/howto/public_html.xml.ja
index 95f63feb35..130259a8a1 100644
--- a/docs/manual/howto/public_html.xml.ja
+++ b/docs/manual/howto/public_html.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+
- The Performance Tuning page in the Apache 1.3 documentation says:
+
+ The Performance Tuning page in the Apache 1.3 documentation says:
"Apache is a general webserver, which is designed to be
@@ -44,16 +44,16 @@
The classic brochureware site is alive and well, but the web has
grown up substantially as a computing application platform and
webmasters may find themselves running dynamic content in Perl, PHP
- or Java, all of which take a toll on performance.
+ or Java, all of which take a toll on performance.
Therefore, in spite of strides forward in machine speed and
bandwidth allowances, web server performance and web application
performance remain areas of concern. In this documentation several
- aspects of web server performance will be discussed.
+ aspects of web server performance will be discussed.
top - 23:10:58 up 71 days, 6:14, 4 users, load average: 0.25, 0.53, 0.47 Tasks: 163 total, 1 running, 162 sleeping, 0 stopped, 0 zombie @@ -139,7 +139,7 @@ Swap: 4194296k total, 860584k used, 3333712k free, 1157552k cached 68 root 15 -5 0 0 0 S 0 0.0 0:06.28 kblockd/0 69 root 15 -5 0 0 0 S 0 0.0 0:00.04 kblockd/1 70 root 15 -5 0 0 0 S 0 0.0 0:00.04 kblockd/2
Top is a wonderful tool even though it's slightly resource intensive (when running, its own process is usually in the top ten CPU gluttons). It is indispensable in determining @@ -147,7 +147,7 @@ Swap: 4194296k total, 860584k used, 3333712k free, 1157552k cached determining how many server processes you can run on your machine. How to do this is described in sizing MaxClients. Top is, however, an interactive tool and running it - continuously has few if any advantages. + continuously has few if any advantages.
sctemme@brutus:~$ free total used free shared buffers cached @@ -170,7 +170,7 @@ Mem: 4026028 3901892 124136 0 253144 841044 Swap: 3903784 12540 3891244
- The following is vmstat
output of an idle server:
+ The following is vmstat
output of an idle server:
[sctemme@GayDeceiver sctemme]$ vmstat 5 3 procs memory swap io system cpu @@ -200,11 +200,11 @@ Swap: 3903784 12540 3891244 0 0 0 0 186244 6696 37516 0 0 0 16 41 314 0 0 100 0 0 0 0 186236 6704 37516 0 0 0 9 44 314 0 0 100
And this is output of a server that is under a load of one - hundred simultaneous connections fetching static content: + hundred simultaneous connections fetching static content:
- +[sctemme@GayDeceiver sctemme]$ vmstat 5 3 procs memory swap io system cpu @@ -213,14 +213,14 @@ Swap: 3903784 12540 3891244 6 0 1 0 163280 6856 40248 0 0 0 66 6384 1117 42 25 32 11 0 0 0 162780 6864 40436 0 0 0 61 6309 1165 33 28 40
The first line gives averages since the last reboot. The subsequent lines give information for five second intervals. The second argument tells vmstat to generate - three reports and then exit. + three reports and then exit.
- - + +The SE Toolkit has drifted around for a while and has had several owners since its inception. It seems that it has @@ -244,20 +244,20 @@ Swap: 3903784 12540 3891244 code. SE Toolkit author Richard Pettit has started a new company, Captive Metrics4 that plans to bring to market a multiplatform monitoring tool built on the same principles - as SE Toolkit, written in Java. + as SE Toolkit, written in Java.
- - + +Given that DTrace is available for Solaris, FreeBSD and OS X, it might be worth exploring it. There's also - mod_dtrace available for httpd. + mod_dtrace available for httpd.
- - + +httpd.conf
,
the Before Apache httpd opens its logfiles, any errors will be written to the stderr stream. If you start httpd manually, @@ -319,7 +319,7 @@ Swap: 3903784 12540 3891244 file is usually a good bet. On Windows, early error messages are written to the Applications Event Log, which can be viewed through the Event Viewer in Administrative - Tools. + Tools.
The Error Log is configured through the
On a server that is visible to the Internet, expect to see a lot of exploit attempt and worm attacks in the error log. A @@ -341,12 +341,12 @@ Swap: 3903784 12540 3891244 port, regardless of which server is actually running or what applications might be installed. You could block these attempts using a firewall or mod_security, - but this falls outside the scope of this discussion. + but this falls outside the scope of this discussion.
The
@@ -563,7 +563,7 @@ Swap: 3903784 12540 3891244 |
On unix systems, you can simply rotate logfiles by giving the old file a new name using mv. The server will keep writing to the open file even though it has a new name. When you send a graceful restart signal to the server, it will open a new logfile with the configured name. For - example, you could run a script from cron like this: + example, you could run a script from cron like this:
- - + +This approach also works on Windows, just not as smoothly. While the httpd process on your Windows server will keep writing to the log file after it has been renamed, the @@ -607,7 +607,7 @@ Swap: 3903784 12540 3891244 Windows Service has to perform will interrupt any requests currently in progress, and the server is unavailable until it is started again. Plan for this when you decide the - timing of your restarts. + timing of your restarts.
A second approach is to use piped logs. From the
@@ -616,13 +616,13 @@ Swap: 3903784 12540 3891244
or |
). For instance:
+ a pipe character (|
). For instance:
The program on the other end of the pipe will receive the Apache log data on its stdin stream, and can do with this data whatever it wants. The rotatelogs program that comes @@ -630,10 +630,10 @@ Swap: 3903784 12540 3891244 time elapsed or the amount of data written, and leaves the old log files with a timestamp suffix to its name. This method for rotating logfiles works well on unix platforms, - but is currently broken on Windows. + but is currently broken on Windows.
- - + +
Do not run a production server with your error
If your server has more than one virtual host, you may give each virtual host a separate access logfile. This makes it @@ -675,10 +675,10 @@ Swap: 3903784 12540 3891244 directive to have Apache collect several log lines in memory before writing them to disk. This might yield better performance, but could affect the order in which the - server's log is written. + server's log is written.
- - + +ASF external projects, that have proven to be quite @@ -722,15 +722,15 @@ Swap: 3903784 12540 3891244 affect the server's response. Also, any data traffic you generate may be charged against your monthly traffic allowance.
- - + +The maximum number of workers, be they pre-forked child processes or threads within a process, is an indication of how @@ -758,7 +758,7 @@ Swap: 3903784 12540 3891244 the maximum number of workers is running, the machine doesn't hit a hard limit beyond which clients will be denied access. However, once requests start backing up, system - performance is likely to degrade. + performance is likely to degrade.
Finally, if the httpd server in question is not executing any third-party
code, via mod_php
, mod_perl
or similar,
@@ -766,8 +766,8 @@ Swap: 3903784 12540 3891244
for situations where httpd serves as a thin layer between clients and
backend servers doing the real job, such as a proxy or cache.
ServerLimit
- directive.
+ directive.
-
-
+
+
MaxClients
.
-
-
+
+
The various amounts of memory allocated for the OS, external programs and the httpd processes is best determined by observation: use the top and free commands described above @@ -837,7 +837,7 @@ Swap: 3903784 12540 3891244 server running. You can also determine the footprint of a typical web server process from top: most top implementations have a Resident Size (RSS) column and a - Shared Memory column. + Shared Memory column.
The difference between these two is the amount of memory per-process. The shared segment really exists only once and @@ -847,7 +847,7 @@ Swap: 3903784 12540 3891244 depends heavily on the number and kind of modules you use. The best approach to use in determining this need is to generate a typical test load against your web site and see - how large the httpd processes become. + how large the httpd processes become.
The RAM for external programs parameter is intended mostly
for CGI programs and scripts that run outside the web
@@ -867,10 +867,10 @@ Swap: 3903784 12540 3891244
to fork additional child processes, so a higher
MaxClients
- value may actually be a disadvantage.
+ value may actually be a disadvantage.
Running a threaded MPM can cause stability problems in some situations For instance, should a child process of a @@ -904,10 +904,10 @@ Swap: 3903784 12540 3891244 cannot guarantee that all of these are thread-safe. The good news is that if you are running Apache on Linux, you can run PHP in the preforked MPM without fear of losing too - much performance relative to the threaded option. + much performance relative to the threaded option.
- - + +MaxSpareServers
- directive.
+ directive.
-
-
+
+
The function of the 'accept mutex' (as this inter-process lock is called) is to keep request reception moving along in an orderly fashion. If the lock is absent, - the server may exhibit the Thundering Herd syndrome. + the server may exhibit the Thundering Herd syndrome.
Consider an American Football team poised on the line of scrimmage. If the football players were Apache processes @@ -949,7 +949,7 @@ Swap: 3903784 12540 3891244 would have to lumber back to the line for the next snap. In this metaphor, the accept mutex acts as the quarterback, delivering the connection "ball" to the - appropriate player process. + appropriate player process.
Moving this much information around is obviously a lot of work, and, like a smart person, a smart web server tries to @@ -962,7 +962,7 @@ Swap: 3903784 12540 3891244 refrain from using an accept mutex. If you run with multiple listeners (for instance because you have a virtual host serving SSL requests), it will activate the accept - mutex to avoid internal conflicts. + mutex to avoid internal conflicts.
You can manipulate the accept mutex with the
@@ -974,15 +974,15 @@ Swap: 3903784 12540 3891244
all are available on every platform, and their availability
also depends on compile-time settings. The various locking
mechanisms may place specific demands on system resources:
- manipulate them with care.
+ manipulate them with care.
There is no compelling reason to disable the accept mutex. Apache automatically recognizes the single listener situation described above and knows if it is safe to run - without mutex on your platform. + without mutex on your platform.
- - + +While the various platforms treat their virtual memory in different ways, it is never a good idea to run with less @@ -1019,7 +1019,7 @@ Swap: 3903784 12540 3891244 don't have disk space available and run out of swappable memory, your machine grinds to a halt. This can crash your box, requiring a physical reboot for which your - hosting facility may charge you. + hosting facility may charge you.
Also, such an outage naturally occurs when you least want
it: when the world has found your website and is beating a
@@ -1029,7 +1029,7 @@ Swap: 3903784 12540 3891244
and back, but when the load decreases the system should
recover. Remember, you still have MaxClients
- to keep things in hand.
+ to keep things in hand.
Most unix-like operating systems use designated disk partitions for swap space. When a system starts up it finds @@ -1040,7 +1040,7 @@ Swap: 3903784 12540 3891244 installing the operating system, be sure to allocate enough swap space to accommodate eventual RAM upgrades. Reassigning disk space on a running system is a cumbersome - process. + process.
Plan for available hard drive swap space of at least twice
your amount of RAM, perhaps up to four times in situations
@@ -1054,29 +1054,29 @@ Swap: 3903784 12540 3891244
or swap
- programs.
+ programs.
Given a machine with plenty of RAM and processor capacity, you can run hundreds of Apache processes if necessary. . . - and if your kernel allows it. + and if your kernel allows it.
Consider a situation in which several hundred web servers are running; if some of these need to spawn CGI processes, - the maximum number of processes would occur quickly. + the maximum number of processes would occur quickly.
-However, you can change this limit with the command +
However, you can change this limit with the command
- +This must be changed before starting the server, since the new value will only be available to the current shell and programs started from it. In newer Linux kernels the @@ -1090,28 +1090,28 @@ Swap: 3903784 12540 3891244 :
- +Similarly, the kernel may limit the number of open files per process. This is generally not a problem for pre-forked servers, which just handle one request at a time per process. Threaded servers, however, serve many requests per process and much more easily run out of available file descriptors. You can increase the maximum number of open - files per process by running the + files per process by running the
- +command. Once again, this must be done prior to starting - Apache. + Apache.
- - + +/etc/pam.d/login
- contains the line
+ contains the line
-
+
All items can have a 'soft' and a 'hard' limit: the first is the default setting and the second the - maximum value for that item. + maximum value for that item.
In FreeBSD's /etc/login.conf
@@ -1148,27 +1148,27 @@ Swap: 3903784 12540 3891244
boot time. These are the same tunables that can be set with
the
mdb
kernel debugger during run time. The soft and hard limit
- corresponding to ulimit -u can be set via:
+ corresponding to ulimit -u can be set via:
Solaris calculates the maximum number of allowed processes
per user (maxuprc
) based on the total amount
available memory on the system (maxusers
).
- You can review the numbers with
+ You can review the numbers with
but it is not recommended to change them. + +
but it is not recommended to change them.
- - + +On Red Hat Linux, the chkconfig tool will help you do this
from the command line. On Solaris systems svcs
and svcadm
will show which services are enabled and disable them
- respectively.
+ respectively.
In a similar fashion, cast a critical eye on the Apache
modules you load. Most binary distributions of Apache
httpd, and pre-installed versions that come with Linux
distributions, have their modules enabled through the
-
Unused modules may be culled: if you don't rely on their functionality and configuration directives, you can @@ -1198,10 +1198,10 @@ Swap: 3903784 12540 3891244 lines. Read the documentation on each module's functionality before deciding whether to keep it enabled. While the performance overhead of an unused module is - small, it's also unnecessary. + small, it's also unnecessary.
- - + +Processing dynamic requests, on the contrary, can be much more involved. Running CGI scripts, handing off requests to an external @@ -1221,10 +1221,10 @@ Swap: 3903784 12540 3891244 significant latency and processing load to a busy web server. Under many circumstances, performance can be improved by turning popular dynamic requests into static requests. In this section, two - approaches to this will be discussed. + approaches to this will be discussed.
- - + +Blosxom is a lightweight web log package that runs as a CGI. It is written in Perl and uses plain text files for entry input. Besides running as CGI, Blosxom can be run from the command line to pre-render blog pages. Pre-rendering pages to static HTML can yield a significant performance boost in the event that large numbers of people actually start - reading your blog. + reading your blog.
To run blosxom for static page generation, edit the CGI
script according to the documentation. Set the $static dir
variable to the
This can be run periodically from Cron, after you upload
content, etc. To make Apache substitute the statically
rendered pages for the dynamic content, we'll use
@@ -1275,9 +1275,9 @@ Swap: 3903784 12540 3891244
to the configure command. Many binary distributions of
Apache come with
The
To enable efficient content caching and avoid presenting the
user with stale or invalid content, the application that
generates the actual content has to send the correct response
- headers. Without headers like Etag:
,
+ headers. Without headers like Etag:
,
Last-Modified:
or Expires:
,
--enable-cache[=shared]
to the configure script. If you use a binary distribution of
Apache httpd, or it came with your port or package collection,
- it may have
httpd.conf
:
-
+
This configuration will try to cache any and all content
within its virtual host. It will never cache content for
more than six hours (the
Do note that it can pay off to disable @@ -1416,21 +1416,21 @@ CacheMaxExpire 21600 TCP packet). For resources larger than 1k it might prove CPU expensive to calculate the header for each request. Unfortunately there does currently not exist a way to cache - these headers. + these headers.
This will disable the generation of the ETag:
header for most static resources. The server does not
- calculate these headers for dynamic resources.
+ calculate these headers for dynamic resources.
event
MPM is threaded like the
- Worker MPM, but is designed to allow more requests to be
- served simultaneously by passing off some processing work
+
+ event
MPM is threaded like the
+ Worker MPM, but is designed to allow more requests to be
+ served simultaneously by passing off some processing work
to supporting threads, freeing up the main threads to work
on new requests.void lingering_close (int s) { char junk_buffer[2048]; - + /* shutdown the sending side */ shutdown (s, 1); @@ -759,7 +759,7 @@ /* just toss away whatever is here */ } } - + close (s); }diff --git a/docs/manual/misc/perf-tuning.xml.fr b/docs/manual/misc/perf-tuning.xml.fr index 6825728c6e..00b64541d2 100644 --- a/docs/manual/misc/perf-tuning.xml.fr +++ b/docs/manual/misc/perf-tuning.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/misc/perf-tuning.xml.ko b/docs/manual/misc/perf-tuning.xml.ko index 293913b33f..4f4b05fb9a 100644 --- a/docs/manual/misc/perf-tuning.xml.ko +++ b/docs/manual/misc/perf-tuning.xml.ko @@ -1,7 +1,7 @@ - + + + diff --git a/docs/manual/misc/security_tips.xml.ko b/docs/manual/misc/security_tips.xml.ko index 96b078e46a..c2a52723ac 100644 --- a/docs/manual/misc/security_tips.xml.ko +++ b/docs/manual/misc/security_tips.xml.ko @@ -1,7 +1,7 @@ - + + + + + diff --git a/docs/manual/mod/core.xml.ja b/docs/manual/mod/core.xml.ja index f061198bc8..06cb68e85f 100644 --- a/docs/manual/mod/core.xml.ja +++ b/docs/manual/mod/core.xml.ja @@ -1,7 +1,7 @@ - + + + diff --git a/docs/manual/mod/mod_asis.xml.ja b/docs/manual/mod/mod_asis.xml.ja index c8e3052597..96f369ceb9 100644 --- a/docs/manual/mod/mod_asis.xml.ja +++ b/docs/manual/mod/mod_asis.xml.ja @@ -1,7 +1,7 @@ - + + + diff --git a/docs/manual/mod/mod_autoindex.html.en b/docs/manual/mod/mod_autoindex.html.en index 4e649e2165..20206a6c3b 100644 --- a/docs/manual/mod/mod_autoindex.html.en +++ b/docs/manual/mod/mod_autoindex.html.en @@ -71,7 +71,7 @@ same header repeatedly toggles between ascending and descending order. These column header links are suppressed with the
IndexOptions
directive's
- SuppressColumnSorting
+ SuppressColumnSorting
option.
Note that when the display is sorted by "Size", it's the @@ -328,7 +328,7 @@ AddDescription "My friend Marshall" friends/mars.gif
Absolute paths are not currently supported and do not match anything at runtime. Arguments with relative path information, - which would normally only be used in htaccess context, are implicitly + which would normally only be used in htaccess context, are implicitly prefixed with '*/' to avoid matching partial directory names.
FoldersFirst
is enabled, subdirectory
Zed
will be listed before subdirectory
Beta
, which will be listed before normal files
- Gamma
and Alpha
.
+ Gamma
and Alpha
.
This option only has an effect if FancyIndexing
is also enabled.
@@ -685,7 +685,7 @@ indexing
to wait until all the images have been loaded. If no value is given for
the option, it defaults to the standard height of the icons supplied
with the Apache httpd software.
-
+
This option
only has an effect if FancyIndexing
is also enabled.
@@ -763,7 +763,7 @@ indexing
space to use for something else. See AddDescription
for information about setting the file
description. See also the DescriptionWidth
index option to limit the size of the description column.
-
+
This option
only has an effect if FancyIndexing
is also enabled.
@@ -797,7 +797,7 @@ indexing
FancyIndexing
is also enabled.
img
and
hr
elements from the pre
block (used to
format FancyIndexed listings.)
-
+
This option
only has an effect if FancyIndexing
is also enabled.
@@ -820,7 +820,7 @@ indexing
FancyIndexing
is also enabled.
SuppressColumnSorting
+ SuppressColumnSorting
option.
Note that when the display is sorted by "Size", it's the
@@ -320,7 +320,7 @@ AddDescription "My friend Marshall" friends/mars.gif
Absolute paths are not currently supported and do not match
anything at runtime. Arguments with relative path information,
- which would normally only be used in htaccess context, are implicitly
+ which would normally only be used in htaccess context, are implicitly
prefixed with '*/' to avoid matching partial directory names.FoldersFirst
is enabled, subdirectory
Zed
will be listed before subdirectory
Beta
, which will be listed before normal files
- Gamma
and Alpha
.
- This option only has an effect if Gamma and Alpha
.
+ This option only has an effect if FancyIndexing
is also enabled.
@@ -698,7 +698,7 @@ indexing
to wait until all the images have been loaded. If no value is given for
the option, it defaults to the standard height of the icons supplied
with the Apache httpd software.
-
+
This option
only has an effect if FancyIndexing
is also enabled.
@@ -793,7 +793,7 @@ indexing
description. See also the DescriptionWidth
index option to limit the size of the description column.
-
+
This option
only has an effect if FancyIndexing
is also enabled.
@@ -834,7 +834,7 @@ indexing
FancyIndexing
is also enabled.
@@ -850,7 +850,7 @@ indexing
by the final specification prohibits img
and
hr
elements from the pre
block (used to
format FancyIndexed listings.)
-
+
This option
only has an effect if FancyIndexing
is also enabled.
@@ -861,7 +861,7 @@ indexing
id="indexoptions.suppresssize">SuppressSizeFancyIndexing
is also enabled.
@@ -1058,7 +1058,7 @@ Name|Date|Size|Description
following classes are associated with the various parts of the
listing:
Class | Definition |
---|---|
tr.indexhead | Header row of listing |
th.indexcolicon and td.indexcolicon | Icon column |
The CacheLockPath
directive allows you to specify the
directory in which the locks are created. If directory is not an absolute
- path, the location specified will be relative to the value of
+ path, the location specified will be relative to the value of
DefaultRuntimeDir
.
When acting as a forward proxy server, url-string must +
When acting as a forward proxy server, url-string must minimally begin with a protocol for which caching should be enabled.
The
Description: | La sémantique des métafichiers du serveur httpd du CERN | |
---|---|---|
Statut: | Extension | |
VirtualHost section | -RewriteRule ^/images/(.+)\.jpg /images/$1.gif | +RewriteRule "^/images/(.+)\.jpg" "/images/$1.gif" |
.htaccess file in document root | -RewriteRule ^images/(.+)\.jpg images/$1.gif | +RewriteRule "^images/(.+)\.jpg" "images/$1.gif" |
.htaccess file in images directory | -RewriteRule ^(.+)\.jpg $1.gif | +RewriteRule "^(.+)\.jpg" "$1.gif" |
For even more insight into how mod_rewrite manipulates URLs in - different contexts, you should consult the log entries made during + different contexts, you should consult the log entries made during rewriting.
diff --git a/docs/manual/rewrite/tech.xml b/docs/manual/rewrite/tech.xml index 83a69f3fc4..e22c7cf8e1 100644 --- a/docs/manual/rewrite/tech.xml +++ b/docs/manual/rewrite/tech.xml @@ -76,7 +76,7 @@ and URL matching.In per-directory context (i.e., within .htaccess
files
and Directory
blocks), these rules are being applied
after a URL has already been translated to a filename. Because of
- this, the URL-path that mod_rewrite initially compares
If a substitution is made in per-directory context, a new internal
- subrequest is issued with the new URL, which restarts processing of the
- request phases. If the substitution is a relative path, the
If a substitution is made in per-directory context, a new internal
+ subrequest is issued with the new URL, which restarts processing of the
+ request phases. If the substitution is a relative path, the
For even more insight into how mod_rewrite manipulates URLs in different contexts, you should consult the log entries made during + href="../mod/mod_rewrite.html#logging">log entries made during rewriting.
@@ -188,4 +188,3 @@ and URL matching. - diff --git a/docs/manual/rewrite/vhosts.html.en b/docs/manual/rewrite/vhosts.html.en index 1946a98d21..8ad14c9eb0 100644 --- a/docs/manual/rewrite/vhosts.html.en +++ b/docs/manual/rewrite/vhosts.html.en @@ -67,10 +67,10 @@ mod_rewrite document.RewriteEngine on -RewriteMap lowercase int:tolower +RewriteMap lowercase "int:tolower" -RewriteCond ${lowercase:%{HTTP_HOST}} ^www\.([^.]+)\.example\.com$ -RewriteRule ^(.*) /home/%1/www$1+RewriteCond "${lowercase:%{HTTP_HOST}}" "^www\.([^.]+)\.example\.com$" +RewriteRule "^(.*)" "/home/%1/www$1"
RewriteEngine on -RewriteMap lowercase int:tolower +RewriteMap lowercase "int:tolower" # define the map file -RewriteMap vhost txt:/www/conf/vhost.map +RewriteMap vhost "txt:/www/conf/vhost.map" # deal with aliases as above -RewriteCond %{REQUEST_URI} !^/icons/ -RewriteCond %{REQUEST_URI} !^/cgi-bin/ -RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ +RewriteCond "%{REQUEST_URI}" "!^/icons/" +RewriteCond "%{REQUEST_URI}" "!^/cgi-bin/" +RewriteCond "${lowercase:%{SERVER_NAME}}" "^(.+)$" # this does the file-based remap -RewriteCond ${vhost:%1} ^(/.*)$ -RewriteRule ^/(.*)$ %1/docs/$1 +RewriteCond "${vhost:%1}" "^(/.*)$" +RewriteRule "^/(.*)$" "%1/docs/$1" -RewriteCond %{REQUEST_URI} ^/cgi-bin/ -RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$ -RewriteCond ${vhost:%1} ^(/.*)$ -RewriteRule ^/(.*)$ %1/cgi-bin/$1 [H=cgi-script]+RewriteCond "%{REQUEST_URI}" "^/cgi-bin/" +RewriteCond "${lowercase:%{SERVER_NAME}}" "^(.+)$" +RewriteCond "${vhost:%1}" "^(/.*)$" +RewriteRule "^/(.*)$" "%1/cgi-bin/$1" [H=cgi-script] diff --git a/docs/manual/rewrite/vhosts.xml b/docs/manual/rewrite/vhosts.xml index 8a44a85016..1cea3de087 100644 --- a/docs/manual/rewrite/vhosts.xml +++ b/docs/manual/rewrite/vhosts.xml @@ -74,10 +74,10 @@ mod_rewrite document.
Later sections override earlier ones, however each module is responsible - for interpreting what form this override takes. A later configuration section + for interpreting what form this override takes. A later configuration section with directives from a given module might cause a conceptual "merge" of some - directives, all directives, or a complete replacement of the modules - configuration with the module defaults and directives explicitly listed in + directives, all directives, or a complete replacement of the modules + configuration with the module defaults and directives explicitly listed in the later context.
Later sections override earlier ones, however each module is responsible - for interpreting what form this override takes. A later configuration section + for interpreting what form this override takes. A later configuration section with directives from a given module might cause a conceptual "merge" of some - directives, all directives, or a complete replacement of the modules - configuration with the module defaults and directives explicitly listed in + directives, all directives, or a complete replacement of the modules + configuration with the module defaults and directives explicitly listed in the later context.