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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
do you understand the difference between a filepath on the *server* (where "/" is your server's "DocumentRoot") or a filepath on your web browser *client* (where "file:" points to something on your local hard drive)?
I make a link of the folder and sent it to the server folder.
Q: Do you mean you made a symbolic link (e.g. "ln -s")?
Q: Did you specify "SymLink" in your httpd.conf file?
Q: Do you know what I mean?
I'm serious: if you don't understand something, please ASK. Don't just mark the post "not helpful", and move on.
Similarly, when the problem is resolved, please mark the post "Resolved", and tell us exactly what you did to solve the problem. That way others can learn from your experience.
There are 2 ways you can link to the second page, either with the absolute url (eg href="http://some/web/address") or with a relative path (eg href="../images/picture.png"). The relative path is relative to the page with the link in it. .. goes up one folder. ../images goes up one folder then into the images folder. data/websites/index.html points to the file index.html inside the folder websites inside the folder data, all relative to the current directory. If you put a / at the front of the path it becomes an absolute path relative to the root folder /
There are 2 ways you can link to the second page, either with the absolute url (eg href="http://some/web/address") or with a relative path (eg href="../images/picture.png"). The relative path is relative to the page with the link in it. .. goes up one folder. ../images goes up one folder then into the images folder. data/websites/index.html points to the file index.html inside the folder websites inside the folder data, all relative to the current directory. If you put a / at the front of the path it becomes an absolute path relative to the root folder /
... BUT ...
1. The term "link" has two meanings.
a) If you mean an HTML "link", the above is true.
b) If you mean an OS "link" (as in "ln -s", for example)
... then while the above is still true
... it might not work UNLESS you allow "Follow symbolic links" in your http.conf file
2. If you mean HTML "link"
... then the path is NOT the physical path on your server's hard drive
Rather, the root ("/") is the "DocumentRoot" you specified in your httpd.conf file. The relative path is with respect to your "DocumentRoot".
Thanks for the reply. The folder I linked is by right clicking on the icon and select the link function. Then, the link folder was sent to the server folder.
1. Paul, it is a HTML link
2. What is httpd.conf then, can explain it briefly to me. Thanks first
3. The problem that I m facing now is some webpages with GIF images cannot be shown in the web browser.
4. My specification of PC: centOS 5.4, mozilla firefox 2.6, and mozilla is without JAVA support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.