blob: 48d888892c61155241ce42be9b2f3a876b3ca337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# VirtualHost example
<Macro MyVirtualHost $host $port $dir>
Listen $port
<VirtualHost $host:$port>
DocumentRoot $dir
<Directory $dir>
Warning "directory $dir"
</Directory>
# limit access to intranet subdir.
<Directory $dir/intranet>
Warning "directory $dir/intranet"
</Directory>
</VirtualHost>
</Macro>
Use MyVirtualHost www.apache.org 80 /projects/apache/web
Use MyVirtualHost www.perl.com 8080 /projects/perl/web
Use MyVirtualHost www.ensmp.fr 1234 /projects/mines/web
Error "done line 23."
|