Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alias Problems, with 'weird signs'

Status
Not open for further replies.

mooya

Technical User
Oct 22, 2006
2
NL
Hello,

i've got a problem with the Alias config i've got.

Ive got this in my config file:
Alias /mp3 "G:/MP3"
<Directory "G:/MP3">
Options FollowSymLinks Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>

When i open a MP3 with no strange signs it works perfect,
but when i open a MP3 like: DJ Tiësto/Album/DJ Tiësto ..mp3
the log says it cant open:
"File does not exist: g:/mp3/albums/trance/dj ti\xe3\xabsto/in my memory/01 - DJ Ti\xc3\xabsto - Magik Journey.mp3"

How do i get this to work?

TNX!
 
If you are going to call the mp3 like that, then why use the alias directive? What you are doing when you use the alias directive is telling apache to pretend that the /MP3 directory is a sub-directory within the domain's DocumentRoot. Hence you would call it like this: The real path is what you are aliasing so you don't need to use the real path. The problem you are having is because there are spaces in the url. Apache doesn't like that so you will need to put your paths within quotes.
 
This site is for my local intranet.
So its not on the internet.
And i have one HDD with the PHP files, and one HDD with the MP3 files, so i have to use a ALIAS.


And other files with whitespace work perfect, only with the "&" and "ë" is goes wrong.
Where do i have to put the quotes? in the php of in the config file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top