summaryrefslogtreecommitdiffstats
path: root/docs/manual/vhosts/examples.html.en
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/vhosts/examples.html.en')
-rw-r--r--docs/manual/vhosts/examples.html.en62
1 files changed, 31 insertions, 31 deletions
diff --git a/docs/manual/vhosts/examples.html.en b/docs/manual/vhosts/examples.html.en
index c38dbbc861..6b106770f1 100644
--- a/docs/manual/vhosts/examples.html.en
+++ b/docs/manual/vhosts/examples.html.en
@@ -80,14 +80,14 @@
<pre class="prettyprint lang-config"># Ensure that Apache listens on port 80
Listen 80
&lt;VirtualHost *:80&gt;
- DocumentRoot /www/example1
+ DocumentRoot "/www/example1"
ServerName www.example.com
# Other directives here
&lt;/VirtualHost&gt;
&lt;VirtualHost *:80&gt;
- DocumentRoot /www/example2
+ DocumentRoot "/www/example2"
ServerName www.example.org
# Other directives here
@@ -143,17 +143,17 @@ Listen 80
# This is the "main" server running on 172.20.30.40
ServerName server.example.com
-DocumentRoot /www/mainserver
+DocumentRoot "/www/mainserver"
&lt;VirtualHost 172.20.30.50&gt;
- DocumentRoot /www/example1
+ DocumentRoot "/www/example1"
ServerName www.example.com
# Other directives here ...
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.50&gt;
- DocumentRoot /www/example2
+ DocumentRoot "/www/example2"
ServerName www.example.org
# Other directives here ...
@@ -184,7 +184,7 @@ DocumentRoot /www/mainserver
section.</p>
<pre class="prettyprint lang-config">&lt;VirtualHost 192.168.1.1 172.20.30.40&gt;
- DocumentRoot /www/server1
+ DocumentRoot "/www/server1"
ServerName server.example.com
ServerAlias server
&lt;/VirtualHost&gt;</pre>
@@ -219,22 +219,22 @@ Listen 8080
&lt;VirtualHost 172.20.30.40:80&gt;
ServerName www.example.com
- DocumentRoot /www/domain-80
+ DocumentRoot "/www/domain-80"
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40:8080&gt;
ServerName www.example.com
- DocumentRoot /www/domain-8080
+ DocumentRoot "/www/domain-8080"
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40:80&gt;
ServerName www.example.org
- DocumentRoot /www/otherdomain-80
+ DocumentRoot "/www/otherdomain-80"
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40:8080&gt;
ServerName www.example.org
- DocumentRoot /www/otherdomain-8080
+ DocumentRoot "/www/otherdomain-8080"
&lt;/VirtualHost&gt;</pre>
@@ -250,12 +250,12 @@ Listen 8080
<pre class="prettyprint lang-config">Listen 80
&lt;VirtualHost 172.20.30.40&gt;
- DocumentRoot /www/example1
+ DocumentRoot "/www/example1"
ServerName www.example.com
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.50&gt;
- DocumentRoot /www/example2
+ DocumentRoot "/www/example2"
ServerName www.example.org
&lt;/VirtualHost&gt;</pre>
@@ -282,22 +282,22 @@ Listen 172.20.30.50:80
Listen 172.20.30.50:8080
&lt;VirtualHost 172.20.30.40:80&gt;
- DocumentRoot /www/example1-80
+ DocumentRoot "/www/example1-80"
ServerName www.example.com
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40:8080&gt;
- DocumentRoot /www/example1-8080
+ DocumentRoot "/www/example1-8080"
ServerName www.example.com
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.50:80&gt;
- DocumentRoot /www/example2-80
+ DocumentRoot "/www/example2-80"
ServerName www.example.org
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.50:8080&gt;
- DocumentRoot /www/example2-8080
+ DocumentRoot "/www/example2-8080"
ServerName www.example.org
&lt;/VirtualHost&gt;</pre>
@@ -312,28 +312,28 @@ Listen 172.20.30.50:8080
<pre class="prettyprint lang-config">Listen 80
&lt;VirtualHost 172.20.30.40&gt;
- DocumentRoot /www/example1
+ DocumentRoot "/www/example1"
ServerName www.example.com
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40&gt;
- DocumentRoot /www/example2
+ DocumentRoot "/www/example2"
ServerName www.example.org
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40&gt;
- DocumentRoot /www/example3
+ DocumentRoot "/www/example3"
ServerName www.example.net
&lt;/VirtualHost&gt;
# IP-based
&lt;VirtualHost 172.20.30.50&gt;
- DocumentRoot /www/example4
+ DocumentRoot "/www/example4"
ServerName www.example.edu
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.60&gt;
- DocumentRoot /www/example5
+ DocumentRoot "/www/example5"
ServerName www.example.gov
&lt;/VirtualHost&gt;</pre>
@@ -372,7 +372,7 @@ Listen 172.20.30.50:8080
any other virtual host.</p>
<pre class="prettyprint lang-config">&lt;VirtualHost _default_:*&gt;
- DocumentRoot /www/default
+ DocumentRoot "/www/default"
&lt;/VirtualHost&gt;</pre>
@@ -397,12 +397,12 @@ Listen 172.20.30.50:8080
to use a second <code>_default_</code> vhost for port 80.</p>
<pre class="prettyprint lang-config">&lt;VirtualHost _default_:80&gt;
- DocumentRoot /www/default80
+ DocumentRoot "/www/default80"
# ...
&lt;/VirtualHost&gt;
&lt;VirtualHost _default_:*&gt;
- DocumentRoot /www/default
+ DocumentRoot "/www/default"
# ...
&lt;/VirtualHost&gt;</pre>
@@ -420,7 +420,7 @@ Listen 172.20.30.50:8080
vhosts.</p>
<pre class="prettyprint lang-config">&lt;VirtualHost _default_:80&gt;
-DocumentRoot /www/default
+ DocumentRoot "/www/default"
...
&lt;/VirtualHost&gt;</pre>
@@ -452,16 +452,16 @@ DocumentRoot /www/default
<pre class="prettyprint lang-config">Listen 80
ServerName www.example.com
-DocumentRoot /www/example1
+DocumentRoot "/www/example1"
&lt;VirtualHost 172.20.30.40 172.20.30.50&gt;
- DocumentRoot /www/example2
+ DocumentRoot "/www/example2"
ServerName www.example.org
# ...
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40&gt;
- DocumentRoot /www/example3
+ DocumentRoot "/www/example3"
ServerName www.example.net
ServerAlias *.example.net
# ...
@@ -488,14 +488,14 @@ DocumentRoot /www/example1
<pre class="prettyprint lang-config">&lt;VirtualHost 172.20.30.40&gt;
# primary vhost
- DocumentRoot /www/subdomain
+ DocumentRoot "/www/subdomain"
RewriteEngine On
RewriteRule . /www/subdomain/index.html
# ...
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40&gt;
-DocumentRoot /www/subdomain/sub1
+ DocumentRoot "/www/subdomain/sub1"
ServerName www.sub1.domain.tld
ServerPath /sub1/
RewriteEngine On
@@ -504,7 +504,7 @@ DocumentRoot /www/subdomain/sub1
&lt;/VirtualHost&gt;
&lt;VirtualHost 172.20.30.40&gt;
- DocumentRoot /www/subdomain/sub2
+ DocumentRoot "/www/subdomain/sub2"
ServerName www.sub2.domain.tld
ServerPath /sub2/
RewriteEngine On