ich versuche schon einige Stunden virtuelle Hosts unter Apache zum Laufen zu bekommen.
Habe mir die aktuelle XAMPP-Version heruntergeladen (1.8.1.)
in hosts habe ich folgende Einträge gemacht:
127.0.0.1 fotoag.dd
127.0.0.1 www.fotoag.dd
in httpd.conf habe ich
LoadModule vhost_alias_module modules/mod_vhost_alias.so
aktiviert
und
ServerName localhost:80
eingetragen.
Und auch den Eintrag
Include "conf/extra/httpd-vhosts.conf"
habe ich vorgenommen.
in der httpd-vhosts.conf habe ich folgendes eingetragen:
NameVirtualHost *:80
und
<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot "C:/xampp/htdocs"
ScriptAlias /cgi-bin/ "C:/xampp/htdocs/cgi-bin/"
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" combined
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
AllowOverride All
Require all granted
DirectoryIndex index.php index.shtml index.html index.htm
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.fotoag.dd
ServerAlias fotoag.dd
ServerAdmin webmaster@fotoag.dd
DocumentRoot "E:/domains/fotoag"
ErrorLog "logs/fotoag.dd-error.log"
CustomLog "logs/fotoag.dd-access.log" combined
<Directory "E:/domains/fotoag">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
AllowOverride All
Require all granted
DirectoryIndex index.php index.shtml index.html index.htm
</Directory>
</VirtualHost>
Der Apache startet zwar aber ohne den VHost.
unter localhost erreiche in den Server.
Ich müsste aber auch unter fotoag.dd einen Server erreichen. auch ein ping auf fotoag.dd geht nicht.
im error.log kommen die Meldungen:
[Fri Feb 15 12:19:49.255881 2013] [ssl:warn] [pid 6724:tid 272] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Feb 15 12:19:49.308382 2013] [mpm_winnt:notice] [pid 6724:tid 272] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Fri Feb 15 12:19:49.308382 2013] [mpm_winnt:notice] [pid 6724:tid 272] AH00456: Server built: Aug 18 2012 12:41:37
[Fri Feb 15 12:19:49.308382 2013] [core:notice] [pid 6724:tid 272] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri Feb 15 12:19:49.308382 2013] [mpm_winnt:notice] [pid 6724:tid 272] AH00418: Parent: Created child process 7120
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp/apache/conf/extra/httpd-vhosts.conf:20
[Fri Feb 15 12:19:50.723101 2013] [ssl:warn] [pid 7120:tid 284] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Feb 15 12:19:50.788102 2013] [mpm_winnt:notice] [pid 7120:tid 284] AH00354: Child: Starting 150 worker threads.
Jemand eine Idee was ich falsch mache?