xamppを起動しlocalhostにアクセスすると
You don't have permission to access this resource.
Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.11 Server at localhost Port 80
と出てきました。解決策を教えてください。
httpd.conf
コード <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> # XAMPP: We disable operating system specific optimizations for a listening # socket by the http protocol here. IE 64 bit make problems without this. AcceptFilter http none AcceptFilter https none # AJP13 Proxy <IfModule mod_proxy.c> <IfModule mod_proxy_ajp.c> Include "conf/extra/httpd-ajp.conf" </IfModule> </IfModule> Alias / "/Applications/XAMPP/htdocs/laravelapp/public/" <Directory "/Applications/XAMPP/htdocs/laravelapp/public/"> #Options Indexs FollowSymLinks MultiViews #AllowOverride all #Order allow,deny AllowOverride All Require all granted #Allow from all </Directory>
httpd-xampp.conf
コード #AllowOverride None #Options None #Require all denied <Files "php-cgi.exe"> Require all granted </Files> </Directory> <Directory "C:/xampp/cgi-bin"> <FilesMatch ".php$"> SetHandler cgi-script </FilesMatch> <FilesMatch ".phps$"> SetHandler None </FilesMatch> </Directory> <Directory "C:/xampp/htdocs/xampp"> <IfModule php7_module> <Files "status.php"> php_admin_flag safe_mode off </Files> </IfModule> AllowOverride AuthConfig </Directory> <IfModule alias_module> Alias /licenses "C:/xampp/licenses/" <Directory "C:/xampp/licenses"> Options +Indexes <IfModule autoindex_color_module> DirectoryIndexTextColor "#000000" DirectoryIndexBGColor "#f8e8a0" DirectoryIndexLinkColor "#bb3902" DirectoryIndexVLinkColor "#bb3902" DirectoryIndexALinkColor "#bb3902" </IfModule> Require local ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </Directory> Alias /phpmyadmin "C:/xampp/phpMyAdmin/" <Directory "C:/xampp/phpMyAdmin"> AllowOverride AuthConfig Require all granted ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </Directory> Alias /webalizer "C:/xampp/webalizer/" <Directory "C:/xampp/webalizer"> <IfModule php7_module> <Files "webalizer.php"> php_admin_flag safe_mode off </Files> </IfModule> AllowOverride AuthConfig Require local ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </Directory> </IfModule>
エラーログはこちら
[Sun Nov 08 21:38:12.733120 2020] [mpm_winnt:notice] [pid 12028:tid 664] AH00354: Child: Starting 150 worker threads. [Sun Nov 08 21:38:18.202586 2020] [authz_core:error] [pid 12028:tid 1920] [client ::1:55187] AH01630: client denied by server configuration: C:/Applications [Sun Nov 08 21:38:18.299631 2020] [authz_core:error] [pid 12028:tid 1920] [client ::1:55187] AH01630: client denied by server configuration: C:/Applications, referer: http://localhost/
あなたの回答
tips
プレビュー