Serving files with static webserver on debian (WordPress)

I’m working on migrating my localhost website to a live one, hosted on amazon web services lightsail (Linux+App [Debian] -> wordpress). I’ve configured wordpress correctly, but I’m here because my web browser is sending me the error “net::ERR_CONNECTION_REFUSED” when i’m trying to visiting the page My_page on wordpress. This page imports my backend javascript files. Some additional info: “My_page” works with an Elementor frontend and then I have a plugin (Custom css and js) where I have written this code:

<script src=""></script>
<script src=""></script>
<link rel="stylesheet" href="">

which is appended after the tag.

Asking why i put the port after the src attribute? because when i’m working on localhost[windows] I have a static web server that serves my files on port 8887, with a software called FenixWebServer and all works correctly. So in thius debian machine I’ve tried using BusyBox by running this command to serve my files (stored in the folder /home/bitnami/BackendFolder) -> busybox httpd -p 8887 -h path_correct but is not working when I try to connect from my chrome browser on my pc to the server. Can anybody help me? Thanks so much!


Try to set Alias on the apache virtual host configuration file.

Alias /phpmyadmin "/usr/share/phpmyadmin"
<Directory "/var/www/">
Order Deny,Allow
Allow from all
Options -Indexes