|< 1 2 3 >| | 26 Einträge, 3 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
ServerName localhost
NameVirtualHost 111.22.33.44
<VirtualHost 111.22.33.44>
DocumentRoot /www/domain
ServerName localhost
</VirtualHost>
<VirtualHost 111.22.33.44>
DocumentRoot /www/board
ServerName board.localhost
</VirtualHost>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<VirtualHost 217.172.179.49:80>
ServerName www.perl-community.de
ServerAlias perl-community.de de.perl.org www.web1.chicago049.server4free.de web1.chicago049.server4free.de www.de.perl.org
DocumentRoot /srv/www/htdocs/web1/html
User web1
Group ftponly
ScriptAlias /cgi-bin/ /srv/www/htdocs/web1/html/cgi-bin/
php_admin_value open_basedir /srv/www/htdocs/web1/
php_admin_value upload_tmp_dir /srv/www/htdocs/web1/phptmp/
ErrorLog /srv/www/htdocs/web1/log/www.perl-community.de.error.log
</VirtualHost>
<VirtualHost 217.172.179.49:80>
ServerName chat.perl-community.de
ServerAlias www.chat.perl-community.de web3.chicago049.server4free.de
DocumentRoot /srv/www/htdocs/web3/html
User web3
Group ftponly
ScriptAlias /cgi-bin/ /srv/www/htdocs/web3/html/cgi-bin/
ErrorLog /srv/www/htdocs/web3/log/chat.perl-community.de.error.log
</VirtualHost>
....
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
Listen 192.168.1.2:8081
Listen 192.168.1.2:8084
Listen 192.168.1.2:8085
....
NameVirtualHost 192.168.1.2:8081
NameVirtualHost 192.168.1.2:8084
NameVirtualHost 192.168.1.2:8085
...
<VirtualHost 192.168.1.2:8081>
DocumentRoot F:/apacheweb/fabiani.net_8081/htdocs
ScriptAlias /cgi-bin/ "F:/apacheweb/fabiani.net_8081/htdocs/cgi-bin/"
ErrorLog F:/apacheweb/fabiani.net_8081/log/8081_error.log
CustomLog F:/apacheweb/fabiani.net_8081/log/8081.log combined
AccessFileName .htaccess
</VirtualHost>
<VirtualHost 192.168.1.2:8084>
DocumentRoot F:/apacheweb/gtchat0.93_profile_8084/html
ScriptAlias /cgi-bin/ "F:/apacheweb/gtchat0.93_profile_8084/html/cgi-bin/"
ErrorLog F:/apacheweb/gtchat0.93_profile_8084/log/8084_error.log
CustomLog F:/apacheweb/gtchat0.93_profile_8084/log/8084.log combined
AccessFileName .htaccess
</VirtualHost>
<VirtualHost 192.168.1.2:8085>
DocumentRoot F:/apacheweb/test_8085/html
ScriptAlias /cgi-bin/ "F:/apacheweb/test_8085/html/cgi-bin/"
ErrorLog F:/apacheweb/test_8085/log/8085_error.log
CustomLog F:/apacheweb/test_8085/log/8085.log combined
AccessFileName .htaccess
</VirtualHost>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<VirtualHost www.test.de>
DocumentRoot /usr/local/htdocs/test.de
ServerName www.test.de
ScriptAlias /cgi-bin/ "/usr/local/htdocs/test.de/cgi-bin/"
<Directory "/usr/local/htdocs/test.de/secure">
AuthName "Mein sicherer Bereich"
AuthType Basic
AuthUserFile /usr/local/htdocs/test.de/secure/.htpasswd
require valid-user
</Directory>
<Location "/cgi-bin">
AllowOverride AuthConfig
Options +ExecCGI -Includes +Indexes
SetHandler cgi-script
</Location>
</VirtualHost>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$TTL 1D
$GENERATE 1-250 client-$ A 192.168.0.$
@ IN SOA server.lan.de. server.lan.de. (
2003020601
3H
15M
1W
1D )
IN NS server
IN MX 0 server
server IN A 192.168.0.251
www IN CNAME server
ftp IN CNAME server
;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# a) mein browser will beim Aufruf http://board.localhost ins Internet gehen und findet da nix
<VirtualHost 127.0.0.1:8080>
DocumentRoot c:/apache/board/htdocs
ScriptAlias /cgi-bin/ "c:/apache/board/htdocs/cgi-bin/"
ErrorLog c:/apache/board/log/8080_error.log
CustomLog c:/apache/board/log/8080.log combined
AccessFileName .htaccess
</VirtualHost>
b) mein Browser meldet, er kann die DNS nicht finden (o.ä.)
<VirtualHost localhost>
DocumentRoot c:/apache/board/htdocs
ScriptAlias /cgi-bin/ "c:/apache/board/htdocs/cgi-bin/"
ErrorLog c:/apache/board/log/8080_error.log
CustomLog c:/apache/board/log/8080.log combined
AccessFileName .htaccess
</VirtualHost>
|< 1 2 3 >| | 26 Einträge, 3 Seiten |