Results 1 to 2 of 2
Hi All,
I am news to this forum , I have one question
I have one file located in /var/images/image.png I have to access this file from apache web server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-10-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 1
How to Access a File
Hi All,
I am news to this forum , I have one question
I have one file located in /var/images/image.png I have to access this file from apache web server . How do I access this file . I have apache installed in my linux box. Is there any tools available to access a file . I want to access the file like
myservername/var/images/image.png or any similar ways .
Please help me out .
- 09-10-2009 #2Just Joined!
- Join Date
- Aug 2009
- Posts
- 76
Theres a few ways to go about this. One is to move the images over to your /var/www folder which is your default web folder that is accessible from your network ip or http: //localhost
You could also edit /etc/apache2/sites-enabled to point to your /var/images folder as your website's default (replacing /var/www as your website's default folder)
You could also simply symlink your /var/images folder to your /var/www -- so that the symlinked folder is /var/www/varimages and can be accessed via http://localhost/varimages/image.png
A symlinking operation can be performed by running a command such as
Keep in mind that command is (lowercase) LNCode:sudo ln -s /var/images /var/www/varimages


Reply With Quote
