youtubeDownloader icon indicating copy to clipboard operation
youtubeDownloader copied to clipboard

Question: Subdomain install

Open nobicycle opened this issue 6 years ago • 3 comments

Hello mooradal,

I installed in an existing subdomain: joomla.localdomain.

$ cd /srv/http/joomla [http@tower joomla]$ cd Server/ [http@tower Server]$ node index.js Server Works !!! At port 4000

e3e1e441-08b4-4f41-8f27-48ce303b63b1

In script.js I tried localhost and joomla.localdomain

$ cat script.js var convertBtn = document.querySelector('.convert-button'); var URLinput = document.querySelector('.URL-input');

convertBtn.addEventListener('click', () => { console.log(URL: ${URLinput.value}); sendURL(URLinput.value); });

function sendURL(URL) { window.location.href = http://localhost:4000/download?URL=${URL}; }

But I get in both cases :

ERR_CONNECTION_REFUSED

Will the example work in a subdomain?

Best

nobicycle avatar Feb 14 '19 05:02 nobicycle

If it's still a problem, try using window.location.href = window.location.href+"/download?URL="+URL;

NismoGraphics avatar Jul 08 '19 15:07 NismoGraphics

Thanks NismoGraphics but that did not work.

nobicycle avatar Jul 09 '19 12:07 nobicycle

Yes, I don't Know about this Project But Node Youtube Dl Works Fine in Subdomain.

rahulkumarsingh73690 avatar Sep 17 '19 13:09 rahulkumarsingh73690