Apache error..
Hello friends..
I am creating a local website which is running through IP address,but when i run a index.html file with ip address,its showing properly.. and when i create a directory under /var/www/domain name/foldername.. when i am trying to checking it on browser like 192.168.X.X/folder name.its showing me a error 403 forbidden,you don't have permission to access particular folder... i have already provide the 777 permission to the folder any solution ? |
This is not Linux Basic Permission issue But Apache permission issue . You should use following statement in apache config
<Directory /var/www/domain name/foldername> Options +Indexes </Directory> Thanks |
Hello vishesh
First of all i want to say thanks to u,for being my supporter. can you please tell me verify the meaning of this (Options +Indexes),why we use it ???????? |
post the configuration you have used in /etc/httpd/conf/httpd.conf file for your local website???
|
<VirtualHost 192.168.X.X>
ServerName Domainname ServerAdmin root@Domain name DocumentRoot /var/www/domainname </VirtualHost> This is the configuration which i have made in /etc/httpd/conf/ httpd.conf.. |
Options +Indexes means for given directory /var/www/domain name/foldername , you are enabling directory indexing option. Directory indexing options allow to list directory content
Thanks |
Hello vishesh..
Now i have found the solution by my self,now i am able to do access folder on browser.. So i want to share it,if some has same problem,then he/she can try this way.. First of all create your domain and folder and file inside of this directory.. # /var/wwww/html/domain name/foldername or for file #cat > /var/www/html/domain name/file name.. One thing which is most impotent Apache by default page store in /var/www/html.... Thank you so much vishesh for my help... |
All times are GMT -5. The time now is 02:53 AM. |