net::ERR_ABORTED 404 (Not Found)

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

net::ERR_ABORTED 404 (Not Found)

Postby khnaz35 » 29. June 2022 08:52

Hello everyone.
I am having an issue with my xampp server. I have configure virtual host and SSL for that. But for some reason i am getting 404 (Not Found). even-though when i am checking the resources they are available in the directories.
I made the following changes :
https://gist.github.com/Khnaz35/f8ea68794079e2e16d08e96594464f7a

Any help is highly appreciated.
Thanks in advance.
khnaz35
 
Posts: 3
Joined: 29. June 2022 08:45
XAMPP version: 3.3.2
Operating System: Window7 home premium

Re: net::ERR_ABORTED 404 (Not Found)

Postby Nobbie » 29. June 2022 09:56

The error message comes from a JavaScript, we need the code.

The VirtualHost configuration is quite buggy:

1) Do never use ServerNames in VirtualHost Tag, instead use IPs and/or meta pattern. Instead of

<VirtualHost test.com:80>

Use

<VirtualHost *:80>

Same for Port 443. Always use *:443.

2) The whole RewriteEngine stuff is nonsense and overkill. Delete all the stuff and replace by a simple redirect:

Redirect / https://test.com/

Restart Apache, try again, show us code if needed.
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04

Re: net::ERR_ABORTED 404 (Not Found)

Postby khnaz35 » 30. June 2022 03:06

Thanks for your reply Nobbie,
But that doesn't solve my issue. My question was why I am getting 404 (Not Found). even-though the resources they are available in the directories.
khnaz35
 
Posts: 3
Joined: 29. June 2022 08:45
XAMPP version: 3.3.2
Operating System: Window7 home premium

Re: net::ERR_ABORTED 404 (Not Found)

Postby Nobbie » 30. June 2022 13:25

khnaz35 wrote:My question was why I am getting 404 (Not Found).


I have no idea.

khnaz35 wrote:even-though the resources they are available in the directories.


Thats what you believe. 404 means, Apache cannot find the ressource. Either you or Apache is wrong - i would probably say, you are wrong. But without code, without any knowledge of the ressources, without any knowlegde which URLs and which resources are requested - how can we help you?? I have no clue. "My car does not drive - why? even-though it has all four wheels?"
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04

Re: net::ERR_ABORTED 404 (Not Found)

Postby khnaz35 » 04. July 2022 04:40

Nobbie wrote: But without code

Which code you are referring too ? Which file required to share ?
Nobbie wrote: without any knowledge of the resources

I have attached the screenshot for your reference. Where we can see that the resources are available into the directory/folder.
image is here:
https://prnt.sc/NAPhNdMz00-B
khnaz35
 
Posts: 3
Joined: 29. June 2022 08:45
XAMPP version: 3.3.2
Operating System: Window7 home premium

Re: net::ERR_ABORTED 404 (Not Found)

Postby Nobbie » 04. July 2022 08:03

No, you only show subfolders, not the full path. But i already can see a part of the path, "...lowkl.com/...." and that looks suspicious. What is the DocumentRoot of localhost? In your xampp virtualhost code snippet you do not have a localhost, if that is the case, Apache takes the first Virtualhost (test.com) if you request localhost.
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 139 guests