Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MP3s under public_html in root? #18

Open
thetwopct opened this issue May 6, 2018 · 1 comment
Open

Use MP3s under public_html in root? #18

thetwopct opened this issue May 6, 2018 · 1 comment
Labels
Stale Applied to issues where feedback has been pending for a long time Support

Comments

@thetwopct
Copy link

thetwopct commented May 6, 2018

I have about 1TB of MP3s. Due to leechers, I don't want them accessible via the web, so I serve downloads of files via a PHP proxy file.

I want to offer a podcast and I am pretty sure dir2cast can help in my scenario, but I just cannot get it to work.

Server layout:
Where my website is /home/company/public_html/
Where dir2cast sits /home/company/public_html/podcast/
Where my mp3 files are /home/company/mp3s/

My settings in dir2cast.ini are:

MP3_DIR = /home/company/mp3s/
;MP3_BASE
;MP3_URL

The files are found and recursively so throughout the directories I have (brilliant) but links to the files in the XML come out as:
file:///home/company/mp3s/show1.mp3

Any help would be blinding!

Cheers

@ben-xo
Copy link
Owner

ben-xo commented May 15, 2018

Heya,

If you peek at the source code, file:// is the last resort when it couldn't work out the right URL from a combination of HTTP_HOST and DOCUMENT_ROOT CGI variables.

You can also just specify your "web root" by setting MP3_URL, which in your configuration you've commented out. Just set that (as well as MP3_DIR) and you should be set.

@ben-xo ben-xo added the Support label May 15, 2018
@ben-xo ben-xo added the Stale Applied to issues where feedback has been pending for a long time label Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Applied to issues where feedback has been pending for a long time Support
Projects
None yet
Development

No branches or pull requests

2 participants