jas-chen / atom-live-server

Launch a simple development http server with live reload capability.
https://atom.io/packages/atom-live-server
MIT License
121 stars 49 forks source link

atom-live-server is not loading my index.php page #247

Open joeyojoeyo opened 4 years ago

joeyojoeyo commented 4 years ago

When starting the atom-live-server, it loads http://localhost:3000 (Firefox - Browser used), and then doesn't load my index.php page, but a "listing directory /" page, listing all the files inside the root folder (exclusively index.php). So, it's not displaying my index.php page.

I've set index.php as the DirectoryIndex before index.html in the httpd.conf file.

When I change the URL to http://localhost:80, my index.php file gets displayed properly. When however using the live server again, it switches back to the port 3000 address, back to the "listing directory /" page. What am I doing wrong?

indnajns commented 4 years ago

I have this same problem and cannot find an answer. The problem is with the live server using Port 3000. How do I tell the Live Server to not use port 3000, just plain localhost(127.0.0.1)?

beetle442002 commented 3 years ago

From Atom click on Edit, then Preferences and in the tab that opens click on Packages, then atom-live-server scroll down and it will tell you how to make the options file and set the page to load and the port to use ext..