Syntax Fehler in vhosts

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Syntax Fehler in vhosts

Postby pospiech » 25. December 2013 17:57

Ich habe die vhosts Datei editiert.

Jetzt started httpd nicht mehr mit dem Fehler
c:\xampp\apache\bin>httpd -t
AH00526: Syntax error on line 46 of C:/xampp/apache/conf/extra/httpd-vhosts.conf:
DocumentRoot takes one argument, Root directory of the document tree


Die Zeile bezieht sich auf
Code: Select all
DocumentRoot "C:/xampp/htdocs/matthias" # change this line with your htdocs folder


aus dem Abschnitt
Code: Select all
<VirtualHost local-matthias.dev>
    ServerAdmin admin@localhost.com
    DocumentRoot "C:/xampp/htdocs/matthias" # change this line with your htdocs folder
    ServerName local-matthias.dev
    ServerAlias local-matthias.dev
    <Directory "C:/xampp/htdocs/matthias">
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *>
    ServerAdmin admin@localhost.com
    DocumentRoot "C:/xampp/htdocs" # change this line with your htdocs folder
    ServerName localhost
    ServerAlias localhost
    <Directory "C:/xampp/htdocs">
        Options Indexes FollowSymLinks Includes ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>


was für mich keinen Sinn ergibt.
pospiech
 
Posts: 27
Joined: 17. March 2005 13:15
Location: Hannover

Re: Syntax Fehler in vhosts

Postby Altrea » 25. December 2013 19:52

Du verwendest eine nicht valide Kommentierungsweise.
Näheres dazu ist hier nachzulesen: http://httpd.apache.org/docs/current/co ... tml#syntax
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Syntax Fehler in vhosts

Postby pospiech » 25. December 2013 22:21

Altrea wrote:Du verwendest eine nicht valide Kommentierungsweise.
Näheres dazu ist hier nachzulesen: http://httpd.apache.org/docs/current/co ... tml#syntax

Danke. Den Code hatte ich aus einem Tutorial kopiert und wäre auf diese Idee selber nicht gekommen.
pospiech
 
Posts: 27
Joined: 17. March 2005 13:15
Location: Hannover


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 48 guests