xamppを用いてローカルの環境下で複数のwordpressを用いたサイトの確認を行いたいと考えています。
hostファイル内には
127.0.0.1 central 127.0.0.1 sample
vhostsファイル内には
<VirtualHost *:80> DocumentRoot C:\xampp\htdocs\test\sample ServerName central </VirtualHost> <Directory "C:\xampp\htdocs\test\sample"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> <VirtualHost *:80> DocumentRoot C:\xampp\htdocs\back ServerName sample </VirtualHost> <Directory "C:\xampp\htdocs\back"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory>
検索すると以下のようなERRORが出てきます。
要求された URL は本サーバでは見つかりませんでした。 もし手入力で URL を入力した場合は、綴りを確認して再度お試し下さい。
サーバーの障害と思われる場合は、ウェブ管理者までご連絡ください。
Error 404
原因がわからず、四苦八苦しております。。。ご助力をどうぞよろしくお願いします。。。
追記
hostsとvhostsのフルパスについて
C:\Windows\System32\drivers\etc\hosts
C:\xampp\apache\conf\extra\httpd-vhosts.conf
appacheのエラーについて
[ssl:warn] [pid 16344:tid 664] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [core:warn] [pid 16344:tid 664] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [ssl:warn] [pid 16344:tid 664] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [mpm_winnt:notice] [pid 16344:tid 664] AH00455: Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.3 configured -- resuming normal operations [mpm_winnt:notice] [pid 16344:tid 664] AH00456: Apache Lounge VC15 Server built: Nov 3 2017 10:30:36 [core:notice] [pid 16344:tid 664] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache' [mpm_winnt:notice] [pid 16344:tid 664] AH00418: Parent: Created child process 14812 AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp/apache/conf/extra/httpd-vhosts.conf:20 [ssl:warn] [pid 14812:tid 720] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [ssl:warn] [pid 14812:tid 720] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name [mpm_winnt:notice] [pid 14812:tid 720] AH00354: Child: Starting 150 worker threads. [php7:error] [pid 14812:tid 1976] [client ::1:63142] script 'C:/xampp/htdocs/dashboard/wp-cron.php' not found or unable to stat, referer: http://localhost/wp-cron.php?doing_wp_cron=1528176735.4197540283203125000000 [php7:error] [pid 14812:tid 1976] [client ::1:63143] script 'C:/xampp/htdocs/dashboard/wp-login.php' not found or unable to stat
回答2件
あなたの回答
tips
プレビュー