NameVirtualHost *:80
<VirtualHost *:80>
ServerName *****
ServerAlias *****
ServerAdmin webmaster@localhost
DocumentRoot "d:/_localhost"
<Directory "d:/_localhost">
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName de.*****
ServerAlias www.de.*****
ServerAdmin webmaster@localhost
DocumentRoot d:/_localhost/subdomains/de
<Directory d:/_localhost/subdomains/de>
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName en.*****
ServerAlias www.en.*****
ServerAdmin webmaster@localhost
DocumentRoot d:/_localhost/subdomains/en
<Directory d:/_localhost/subdomains/en>
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
127.0.0.1 localhost
127.0.0.1 de.localhost
127.0.0.1 en.localhost
2. httpd.conf die Raute NICHT rausnehmen, wegen Version 1.5.3a
3. httpd-vhosts.conf um Anhang 1 erweitern.
4. host um Anhang 2 erweitern.
Stimmts?
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *
ServerAlias *
ServerAdmin webmaster@localhost
DocumentRoot "d:/_localhost"
<Directory "d:/_localhost">
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost de.localhost:80>
ServerName de.localhost
ServerAlias www.de.localhost
ServerAdmin webmaster@localhost
DocumentRoot d:/_localhost/subdomains/de
<Directory d:/_localhost/subdomains/de>
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost en.localhost:80>
ServerName en.localhost
ServerAlias www.en.localhost
ServerAdmin webmaster@localhost
DocumentRoot d:/_localhost/subdomains/en
<Directory d:/_localhost/subdomains/en>
AllowOverride All
Options +Indexes IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
#ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /WWW/xampp/htdocs
ServerName www.domain.info
ServerAlias domain.info
</VirtualHost>
<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot /WWW/xampp/htdocs/ORDNER/ampache
ServerName www.sub.domain.info
ServerAlias sub.domain.info
</VirtualHost>
Users browsing this forum: No registered users and 38 guests