LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache error.. (https://www.linuxquestions.org/questions/linux-newbie-8/apache-error-4175443100/)

shaana2khan 12-27-2012 06:26 AM

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 ?

vishesh 12-27-2012 07:04 AM

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

shaana2khan 12-28-2012 12:58 AM

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 ????????

RaviTezu 12-28-2012 01:14 AM

post the configuration you have used in /etc/httpd/conf/httpd.conf file for your local website???

shaana2khan 12-28-2012 03:12 AM

<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..

vishesh 12-28-2012 09:51 AM

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

shaana2khan 12-29-2012 03:15 AM

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.