Thread vHosts: wie richte ich mir eine Subdomain ein? (25 answers)
Opened by pktm at 2003-08-08 20:29

Strat
 2003-08-08 20:37
#29651 #29651
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
Hier auf diesem Webserver sieht es z.B. folgendermaszen aus:
Code: (dl )
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>
....


Privat verwende ich allerdings wegen der Hostname-Problematik lieber verschiedene Ports, z.B.
Code: (dl )
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>
\n\n

<!--EDIT|Strat|1060361032-->
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread vHosts: wie richte ich mir eine Subdomain ein?