昨日windows10でxamppの環境を作ったのですが、昨日まで繋がっていたパスが見れなくなってしまいました。コントロールパネルのApacheとMySQLは起動しています。
C:\xampp\htdocsにtest.htmlを配置し、Chromeでhttp://localhost/test.html
を叩いているのですが、Object not found!と表示されてしまいます。
設定ファイルをいじった記憶はないのですが、再起動で何か書き換わっていけないものが上書きされてしまったのでしょうか。
以下、試したことです。
・firefox,IE等別ブラウザでも試してみる
・xampp自体、PCを再起動する
##XAMPPのコントロールパネル
##httpd.confのDocumentRoot周りの記述
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/xampp/htdocs" <Directory "C:/xampp/htdocs"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted </Directory>
##test.html
html
1<!DOCTYPE html> 2<html lang="ja"> 3 4<head> 5 <meta charset="UTF-8"> 6 <title>Document</title> 7</head> 8 9<body> 10 <p> 11 hogehogehogehogehoge 12 </p> 13</body> 14 15</html>
回答2件
あなたの回答
tips
プレビュー