httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frederik Nosi <frederik.n...@postecom.it>
Subject Re: [users] Apache2 Trying to retrieve at least an index but Forbidden
Date Thu, 05 Jun 2014 15:29:39 GMT
Try accessing it using this link. it should work:

www.indextest.com/test1.html

I think you're missing a index.html in your document root.


Bye,
F

On 06/05/2014 05:05 PM, Luigi Cirillo wrote:
> Hi, I have apache config problems:
> #########
> Forbidden
>
> You don't have permission to access / on this server.
> #################
>
> I have apache on a virtual machine debian Wheezy on my laptop.
>
>
> I wrote this virtualhost file:
> #################
> <VirtualHost *:80>
>          ServerName indextest.com
>          DocumentRoot /var/www/index/
>          ServerAlias www.indextest.com
>              <Directory /var/www/index>
>                  Order deny,allow
>                  Allow from all
>                  Options Indexes FollowSymLinks
>              </Directory>
>
>          ErrorLog ${APACHE_LOG_DIR}/error.log
>
>          # Possible values include: debug, info, notice, warn, error, crit,
>          # alert, emerg.
>          LogLevel debug
>
>          CustomLog ${APACHE_LOG_DIR}/access.log combined
>
> </VirtualHost>
> #################
>
> I added the entry www.indextest.com in the hosts file of laptop host
> (Debian Jessie).
>
>
> I tried to enable everything to let work the virtual host.
>
>
> /etc/apache2/apache.conf:
> ###########
>              <Directory /var/www/index/>
>                  Order deny,allow
>                  Allow from all
>                  Options Indexes FollowSymLinks
>              </Directory>
> ############
>
> /etc/apache2/conf.d/security:
> ###########
> <Directory />
>          AllowOverride None
>          Order Deny,Allow
>          Allow from all
> </Directory>
> ##########
>
> ls -la /var/www/index:
> ##########
> total 8
> drwxr-xr-x  2 www-data www-data 4096 Jun  5 15:52 .
> drwxr-xr-x 12 root     root     4096 Jun  5 15:34 ..
> -rw-r--r--  1 www-data www-data    0 Jun  5 15:52 test1.html
> -rw-r--r--  1 www-data www-data    0 Jun  5 15:52 test2.html
> -rw-r--r--  1 www-data www-data    0 Jun  5 15:52 test3.html
> #############
>
>
> No selinux installed.
> Nothing in error.log
>
> Any help? Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message