[SOLVED] experience with Apache? and HTML? I need your help : )
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Put the media files in the same directory as your index.html file, or lower in the directory structure, it is normally /var/www, but I look at your apache configuration file at the ServerRoot directive and it will tell you which directory to use.
If you want the mp3 to be accessible through the web server, you must put it under the DocumentRoot. You can create a folder (e.g. media) under htdocs and put it there if you want to share more mp3 files.
Doing so, you can use: <a href=media/my.mp3>My mp3</a>
alright so this is what happens and what continues to happen, so i have a link named "about us"
and i am directing it to the aboutus.html in the directory /var/www/aboutus.html
so in the code this is what it looks like in the index.html file
<p><a href="/var/www/aboutus.html">About Us</a></p>
now as a result of clicking on the about us link on my website, it returns this:
The requested URL /var/www/aboutus.html was not found on this server.
Now i looked in the apache.conf file and it says my server root is:
I changed the "href" to that directory as well with the same result
as far as my documentroot ive been looking at examples all over the internet, trying to figure out where to put this, but its all been a little to advanced for me and i dont really understand, all i have come up with is editing the httpd.conf and so far all it says is
any help will do...it seems so simple but i am making it so complicated i just want to fix this hahaha
Glad to see it worked!
644 means that the file can be readable by anyone and writable only from the owner. In general apache wants a 755 permissions for the directories under DocumentRoot and 644 for the files it will serve.
If you want to read more on file permissions take a look here
Btw you can use "Thread tools" on top of the page to mark the thread Solved