![]() |
problem with apache !!!!
hello all
iam facing aproblem with my apache i want to setup an an alias that makes me able to access the documentations out side the document root ..... first i make a dir called test at the /var and then i creat an html file at the /var/test/index.html PHP Code:
PHP Code:
and when i get my apache up and want to access the page i got this error Forbidden You don't have permission to access /test on this server. so what is the problem how ever when i doing ls -ali for the /var/test PHP Code:
|
Hi Adam,
Your post was a little confusing and i'm not quite sure what you are trying to achieve, but apache, by default, will put your internet files into /var/www and not just /var. So just undo anything that you have done to the apache configuration file, and stick your index.html into /var/www. That should do the trick!!! The reason that you are getting a forbidden message is because you are trying to access a directory that apache has blocked from the public. If apache did not do this anyone could access any file on your system! Now that wouldn't be very nice would it? Good Luck mate I hope that helps. Luke |
thanx for ur replay but i know that and itis not a principle that the document root is located at /var/www but it can be located at htdocs dir under apache directory where u but the installation files .
by the way all i want to do to make an alias that makes me able to access html files that located out site document root and i got a permission warning however i set the permissions for normal users in the system |
Hmmmm?
That is weird... Must be a problem with the config file. |
MMMmmmMMMmmMMm
am sure that my config file is working well |
Hey !
any expert her can tell me what is the problem ? |
try as below,
Alias /test /var/test <Directory /var/test> Order allow,deny Allow from all </Directory> I am very sure, but let me know whether this will help you, for more information visit http://linuxgalore.com |
i did that but still having the same problem
|
thanx all it just working fine after adding what henry sukumar said
Alias /test /var/test <Directory /var/test> Order allow,deny Allow from all </Directory> and changing the owner of the directory which i want to access it and it just fine :) |
All times are GMT -5. The time now is 02:17 PM. |