How can I use data outside of Apache root directory?
Posted by: Ency (---.120.77.82.static.cluj.rdsnet.ro)
Date: January 06, 2014 02:57PM

I have my site in C:\Site and the songs I put it in D:\Songs.
In php I see the D:\Songs directory, I can read subdirectories, I see the .mp3 and .Wav files, I created the playlist, but the audio player doesn't start.
If I move the songs files in C:\Site or C:\Site\Songs goes perfectly, I can listen my music, but I do not want to be there.
Why I see in D:\Songs, but does not want to go? In httpd.conf I have:

DocumentRoot "C:/Site/"
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

and

<Directory "C:/Site/">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

I try to put also:

<Directory "D:/Songs/">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>

bud does not work.

If I insert in httpd.conf
Alias /muzica "D:/Songs/"
I receive the error
<
Not Found

The requested URL /download/index.php was not found on this server.
>
after

[w] w w.mysite.ro/muzica/index.php

I can see in D:/Songs files and subdirectories, I can create, modify, delete files in D:/Songs and I can download songs from there, bud not to listening music.
What can I do?



Edited 1 time(s). Last edit at 01/06/2014 10:19PM by Ency.

Options: ReplyQuote


Sorry, only registered users may post in this forum.