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!

Im New Please Assist. Apache not working correctly 1

Status
Not open for further replies.

Gumby001

Programmer
Jan 24, 2007
21
US
Hellow. I have been trying many things for many hours... I got Apache to say It Works! when i open up localhost. But thats all that happens... i have mad a folder and an index file and an audio file to test it out but nothing works... The index file doesnt load. only if i go into the folder and double click it manually and the audio file when i try and dl from the manually click index.html page it says protocol isnt associated with any program. Please assist. Thank you very much
 
I was looking at your other thread. Will apache serve an index page from the new directory you've created? Is this new directory been defined as your DocumentRoot? Is there a container for it so apache will know it is part of its webspace? If you can put a regular html page in ther and it works, then we can work on getting apache to server the sound file. Even though Windows and your browser know what the soundfile is, apache is stumped. You may need to use the AddType directive so apache will know how to treat that file type.
 
I have a directory C:/gumby/music. C:/gumby is my directory and my document root. What do you mean container to knwo its part of my webspace?... I have a regular index.html in C:/gumby that works when i double click it, but not when i execute localhost. And sorry im really newbie to this but AddType directive? may i ask you for that
 
Okay i got Apache to load the DocumentRoot and the Directory correctly but now its just the .mp3 file if you could help me out with that
 
I'm not sure if apache is too hip on serving mp3 files. I just did a quick google for 'apache mp3' and saw that there is a module called apache::mp3 which may be what you're looking for. The AddType directive I was talking about tells apache a little about the files with a .mp3 extention. It would look something like this:

AddType audio/mpeg .mp3

A directory container are the blocks of code in httpd.conf that look like this:

<Directory "/path/to/directory/">

Directives go
in here

</Directory>

You will see a few of them in httpd.conf for your DocumentRoot, cgi-bin and "/" the root directory.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top