@@ -10,11 +10,11 @@ accessible, if needed, even cross-domain.
10
10
11
11
## Getting Started
12
12
13
- There are a two options for getting the Apache server configs:
13
+ There are two options for getting the Apache server configs:
14
14
15
15
* If you have access to the [ main server configuration
16
16
file] ( https://httpd.apache.org/docs/current/configuring.html#main )
17
- (usually called ` httpd.conf ` ), you should configure Apache by this way.
17
+ (usually called ` httpd.conf ` ), you should configure Apache this way.
18
18
This is usually the recommended way, as using ` .htaccess ` files [ slows
19
19
down] ( https://httpd.apache.org/docs/current/howto/htaccess.html#when )
20
20
Apache!
@@ -53,7 +53,7 @@ Most specific variables are:
53
53
apache2 -t -f httpd.conf
54
54
```
55
55
56
- * To reload Apache and apply new config
56
+ * To reload Apache and apply the new config
57
57
58
58
``` shell
59
59
apache2ctl reload
@@ -158,7 +158,7 @@ This repository has the following structure:
158
158
* ** ` basic.conf` **
159
159
160
160
This file loads a small subset of the rules provided by this repository to add
161
- expires headers, allow cross domain fonts and protect system files from web
161
+ expires headers, allow cross- domain fonts and protect system files from web
162
162
access.
163
163
The ` basic.conf` file includes the rules which are recommended to always be
164
164
defined.
@@ -251,7 +251,7 @@ to your settings in the `htaccess.conf` of your project root.
251
251
252
252
#### Configuration file: `htaccess.conf`
253
253
254
- Allows you to define which module to [enable](#enabling-modules) or
254
+ It allows you to define which module to [enable](#enabling-modules) or
255
255
[disable](#disabling-modules) for your project. Just copy the default
256
256
[`htaccess.conf`](https://github.com/h5bp/server-configs-apache/blob/master/bin/htaccess.conf)
257
257
from this repo into your project directory. Adjust to your needs, and/or
@@ -290,7 +290,7 @@ omit "h5bp/cross-origin/web_fonts.conf"
290
290
291
291
##### Enabling modules
292
292
293
- For example, the *“Forcing https://”* snippet is disabled by default,
293
+ For example, the *“Forcing ` https://` ”* snippet is disabled by default,
294
294
although being included in our pre-built `.htaccess`. To enable this
295
295
snippet, change the `disable` keyword to `enable`:
296
296
@@ -301,7 +301,7 @@ enable "h5bp/rewrites/rewrite_http_to_https.conf"
301
301
##### Adding custom modules
302
302
303
303
Imagine you' re passing all requests to non-existing files to your
304
- favourite web framework. The according
304
+ favorite web framework. The according
305
305
[_mod_dir_](https://httpd.apache.org/docs/trunk/mod/mod_dir.html#fallbackresource)
306
306
snippet would go like this:
307
307
@@ -322,9 +322,10 @@ enable "config/framework_rewrites.conf"
322
322
Dive into your project root and call the build script from wherever you cloned
323
323
the repo. Here are three examples:
324
324
325
- ** 1. Create a default ` .htaccess` **
326
- in current work directory. An existing ` htaccess.conf` in this directory will
327
- be used; if none is present, the
325
+ 1. Create a default ` .htaccess`
326
+
327
+ Create a default ` .htaccess` in the current work directory. An existing
328
+ ` htaccess.conf` in this directory will be used; if none is present, the
328
329
[** default configuration** ](https://github.com/h5bp/server-configs-apache/blob/master/bin/htaccess.conf)
329
330
will apply.
330
331
@@ -337,8 +338,9 @@ $ path/to/server-configs-apache/bin/build.sh
337
338
[✔] Moved in place: ' ./.htaccess'
338
339
` ` `
339
340
340
- ** 2. Custom output location**
341
- Just add output path and filename as parameter. By the way, if there' s an
341
+ 2. Custom output location
342
+
343
+ Just add an output path and filename as a parameter. By the way, if there' s an
342
344
existing `.htaccess` file, the build script will create a backup.
343
345
344
346
```console
@@ -348,9 +350,10 @@ $ path/to/server-configs-apache/bin/build.sh htdocs/.htaccess
348
350
[✔] Moved in place: ' htdocs/.htaccess'
349
351
```
350
352
351
- **3. Custom `.htaccess` configuration**
353
+ 3. Custom `.htaccess` configuration
354
+
352
355
Why not maintain your personal `~/htaccess.conf`? This example creates a
353
- `.htaccess` in current work directory, according to your favourite settings
356
+ `.htaccess` in the current work directory, according to your favorite settings
354
357
you may have stored in your `$HOME` directory:
355
358
356
359
```bash
0 commit comments