127.0.0.1 does NOT work

Problems with the Windows version of XAMPP, questions, comments, and anything related.

127.0.0.1 does NOT work

Postby dotKer » 25. February 2024 02:57

Yesterday I did power off.

I do power on.
I open the XAMPP Control Panel.
I click the start button for Apache.
I click the start butto for MySQL.
All works fine.
However when I open the index.php by the url "127.0.0.1", It says like the following.
Forbidden

You don't have permission to access this resource.
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.10 Server at 127.0.0.1 Port 80


when I open the phpmyadmin by the url "127.0.0.1/phpmyadmin/", The phpmyadmin open well.

Why does NOT "127.0.0.1" open?
How to fix it?
dotKer
 
Posts: 40
Joined: 09. November 2020 13:28
XAMPP version: 7.4.11
Operating System: windows

Re: 127.0.0.1 does NOT work

Postby Nobbie » 25. February 2024 11:18

Look into the access log and into the error log, there should be more information. What is the DocumentRoot? Did you change any configuration? Did you install any applications (i.e. Wordpress etc.)?

Give us all informations.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: 127.0.0.1 does NOT work

Postby dotKer » 25. February 2024 12:01

Look into the access log and into the error log

S:\xampp221121\apache\logs

[Sun Feb 25 17:47:19.810738 2024] [ssl:warn] [pid 10832:tid 428] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 17:47:19.866698 2024] [core:warn] [pid 10832:tid 428] AH00098: pid file S:/xampp221121/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Feb 25 17:47:19.870694 2024] [ssl:warn] [pid 10832:tid 428] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 17:47:20.285275 2024] [mpm_winnt:notice] [pid 10832:tid 428] AH00455: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.10 configured -- resuming normal operations
[Sun Feb 25 17:47:20.285275 2024] [mpm_winnt:notice] [pid 10832:tid 428] AH00456: Apache Lounge VS16 Server built: Jun 22 2022 09:58:15
[Sun Feb 25 17:47:20.285275 2024] [core:notice] [pid 10832:tid 428] AH00094: Command line: 's:\\xampp221121\\apache\\bin\\httpd.exe -d S:/xampp221121/apache'
[Sun Feb 25 17:47:20.294260 2024] [mpm_winnt:notice] [pid 10832:tid 428] AH00418: Parent: Created child process 3208
[Sun Feb 25 17:47:21.492253 2024] [ssl:warn] [pid 3208:tid 460] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 17:47:21.549211 2024] [ssl:warn] [pid 3208:tid 460] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 17:47:21.726110 2024] [mpm_winnt:notice] [pid 3208:tid 460] AH00354: Child: Starting 150 worker threads.
[Sun Feb 25 19:45:30.079953 2024] [ssl:warn] [pid 5068:tid 428] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 19:45:30.158073 2024] [core:warn] [pid 5068:tid 428] AH00098: pid file S:/xampp221121/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Feb 25 19:45:30.173697 2024] [ssl:warn] [pid 5068:tid 428] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 19:45:30.392432 2024] [mpm_winnt:notice] [pid 5068:tid 428] AH00455: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.10 configured -- resuming normal operations
[Sun Feb 25 19:45:30.392432 2024] [mpm_winnt:notice] [pid 5068:tid 428] AH00456: Apache Lounge VS16 Server built: Jun 22 2022 09:58:15
[Sun Feb 25 19:45:30.392432 2024] [core:notice] [pid 5068:tid 428] AH00094: Command line: 's:\\xampp221121\\apache\\bin\\httpd.exe -d S:/xampp221121/apache'
[Sun Feb 25 19:45:30.392432 2024] [mpm_winnt:notice] [pid 5068:tid 428] AH00418: Parent: Created child process 12244
[Sun Feb 25 19:45:32.298552 2024] [ssl:warn] [pid 12244:tid 436] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 19:45:32.361048 2024] [ssl:warn] [pid 12244:tid 436] AH01909: http://www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Feb 25 19:45:32.501664 2024] [mpm_winnt:notice] [pid 12244:tid 436] AH00354: Child: Starting 150 worker threads.
[Sun Feb 25 19:48:42.662262 2024] [autoindex:error] [pid 12244:tid 1884] [client 127.0.0.1:3599] AH01276: Cannot serve directory F:/load/: No matching DirectoryIndex (index.php,index.pl,index.cgi,index.asp,index.shtml,index.html,index.htm,default.php,default.pl,default.cgi,default.asp,default.shtml,default.html,default.htm,home.php,home.pl,home.cgi,home.asp,home.shtml,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
[Sun Feb 25 19:48:43.876572 2024] [autoindex:error] [pid 12244:tid 1884] [client 127.0.0.1:3599] AH01276: Cannot serve directory F:/load/: No matching DirectoryIndex (index.php,index.pl,index.cgi,index.asp,index.shtml,index.html,index.htm,default.php,default.pl,default.cgi,default.asp,default.shtml,default.html,default.htm,home.php,home.pl,home.cgi,home.asp,home.shtml,home.html,home.htm) found, and server-generated directory index forbidden by Options directive


What is the DocumentRoot?

S:\xampp221121\htdocs\

change any configuration?


<VirtualHost *:80>
DocumentRoot "F:img"
ServerName img.dot.kr
<Directory "F:img">
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "S:/xampp221121/htdocs"
ServerName dot.kr
ServerAlias *.dot.kr
<Directory "S:/xampp2201121/htdocs">
Require all granted
</Directory>
</VirtualHost>
dotKer
 
Posts: 40
Joined: 09. November 2020 13:28
XAMPP version: 7.4.11
Operating System: windows

Re: 127.0.0.1 does NOT work

Postby dotKer » 25. February 2024 12:07

S:\xampp221121\apache\logs


127.0.0.1 - - [25/Feb/2024:13:14:41 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:13:14:42 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:13:25:47 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:13:25:49 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:13:25:50 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:13:25:51 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:13:25:51 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:19:48:42 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:19:48:43 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:19:48:43 +0900] "GET /favicon.ico HTTP/1.1" 404 296 "http://127.0.0.1/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
127.0.0.1 - - [25/Feb/2024:19:53:43 +0900] "-" 408 - "-" "-"
127.0.0.1 - - [25/Feb/2024:20:04:30 +0900] "GET / HTTP/1.1" 403 299 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
dotKer
 
Posts: 40
Joined: 09. November 2020 13:28
XAMPP version: 7.4.11
Operating System: windows

Re: 127.0.0.1 does NOT work

Postby Nobbie » 25. February 2024 16:34

You actually messed up totally your installation.

1) The error message says "Cannot serve directory F:/load/: No matching DirectoryIndex" - but you dont show us where you used "F:/load" in your config.

2) "F:img" in your VirtualHost misses directory slash

3) F: and S: are ambigous drive letters. What is meant by these? Drive letters of network drives and usb drives have a very limited scope.

4) What is the DocumentRoot of 127.0.0.1 (localhost)? You did not show us the VirtualHost for localhost. Same for 127.0.0.1 - no VirtualHost here.

There are pretty many errors, that configuration never worked. You definately changed a lot before shooting down the PC without testing it.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 243 guests