httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luigi Cirillo <appo...@gmail.com>
Subject Re: [users] Apache2 Trying to retrieve at least an index but Forbidden
Date Thu, 05 Jun 2014 16:04:44 GMT
Thank you Frederik,

Accessing http://www.indextest.com/test1.html:
#############

Not Found

The requested URL /test1.html was not found on this server.

________________________________
Apache/2.2.22 (Debian) Server at www.indextest.com Port 80
######################################

I added also the default "it works!" index.html page and changed owner
to www-data, but accessing http://www.indextest.com/test1.htm:
##########

Forbidden

You don't have permission to access / on this server.

________________________________
Apache/2.2.22 (Debian) Server at www.indextest.com Port 80
##########

There is webmin intalled I do not understand why but if I add the
index.htm file in /home/domain/public_html, it work.

I checked the suexec module and it is the original.


On Thu, Jun 5, 2014 at 5:29 PM, Frederik Nosi <frederik.nosi@postecom.it> wrote:
> 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
>

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


Mime
View raw message