0

Since there are no drive letters in Ubuntu, where do you put a document you want as link on your Apache website on Ubuntu?

For example, you install Apache2 on Ubuntu Server, you go to /var/www/html/index.html to create your website. On your website you have an option for Contacts and About us which you want to be clickable. Where do you put the document to link to this option?

Zanna
  • 72,312

1 Answers1

3

Your title is mileading, I don't see any relation to drive letters. Apache will find files relative to the Directory of your site. Local links will only work on your machine, but then you won't need Apache.

Put your files to your Apache site directory:

/var/www/html/index.html
/var/www/html/contact.html
/var/www/html/about_us.html
/var/www/html/img/image1.jpg
/var/www/html/img/image2.jpg

And then link or embed them in your html page:

<a href="contact.html">Contact</a>
<a href="about_us.html">About us</a>
<a href="img/image1.jpg">Link to image 1</a>
<img src="img/image2.jpg" alt="Embedded Image 2" />
pLumo
  • 27,991