Veröffentlicht 15. Dezember 201410 j Hallo, ich habe mich an diese Anleitung gehalten und hänge gerade beim Einrichten von Apache. Ich bekomme immer nur die Meldung "Zugriff verweigert", wenn ich die Adresse http://flow.demo aufrufen möchte. Da xampp mir zwei Ports anzeigt, habe ich auch schon versucht, in der vshost.config einfach den anderen zu benutzen, aber dann werde ich zu xampp/htdocs weitergeleitet. hosts: #localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost 127.0.0.1 flow.demo httpd-vshosts.conf # Virtual Hosts # # Required modules: mod_log_config # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.4/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # ##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 "C:/xampp/htdocs/dummy-host.example.com" ##ServerName dummy-host.example.com ##ServerAlias www.dummy-host.example.com ##ErrorLog "logs/dummy-host.example.com-error.log" ##CustomLog "logs/dummy-host.example.com-access.log" common ##</VirtualHost> ##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host2.example.com ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com" ##ServerName dummy-host2.example.com ##ErrorLog "logs/dummy-host2.example.com-error.log" ##CustomLog "logs/dummy-host2.example.com-access.log" common ##</VirtualHost> <VirtualHost flow.demo:80> DocumentRoot "C:/flow3/Web/" ServerAlias flow.demo </VirtualHost> flow.bat @ECHO OFF REM Replace the following line with the path to your PHP executable if required REM This can include the php.ini to be used (for example "SET PHP=C:/php/php.exe -c C:/php/php.ini") SET PHP=C:/xampp/php/php.exe %PHP% %~dp0Packages/Framework/TYPO3.Flow/Scripts/flow.php %* Settings.yaml: # Path and filename of the PHP binary # The constant PHP_BINDIR usually contains the path, but on Windows this doesn't work reliably phpBinaryPathAndFilename: 'c:/xampp/php/php.exe' Weiß jemand, woran es krankt?
16. Dezember 201410 j Du hast dich eben nicht an die Anleitung gehalten!! Dein DocumentRoot: DocumentRoot "C:/flow3/Web/" DocumentRoot in der Docu: DocumentRoot "C:/xampp/htdocs/flow.demo/Web/" finde den Fehler und ich würde den VirtualHost so anlegen: <VirtualHost flow.demo:*> DocumentRoot "C:/xampp/htdocs/flow.demo/Web/" ServerAlias flow.demo </VirtualHost>
Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.