When I try to open localhost I see (Not Found
The requested URL was not found on this server. ), after checking Apache(error.log) on xampp, I found this message ( www.example.com:443:0 Server certificate does not contain an ID that matches the server name )
First, I made sure that the Apache server is indeed running. After that, I looked for some answers and kinsta.com suggested adding (ServerName localhost: port number strong>) to httpd -ssl.conf file but I still get the same error, I have changed the port number multiple times but still have the same problem.
This is my first time using xampp and PHP, any ideas?
For XAMPP, solve this problem
"ServerName www.example.com:443"
and comment it out (add # in front of the line)operating hours:
Start XAMPP Control Panel
Click the Explorer button (this will XAMPP folder)
Navigate to apache > conf > Extra
and edited httpd.conf
I looked for the line "Listen 80" and made changes Change to "Listen to 81"
Also looked for the line "ServerName localhost:80", Change it to "servername localhost:81"
Restart Apache via XAMPP control (stop then start) panel
Thank you Ken Lee for your helpful answer