You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Luigi Cirillo <ap...@gmail.com> on 2014/06/05 17:05:20 UTC

[users] Apache2 Trying to retrieve at least an index but Forbidden

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


[users] getting stuck

Posted by georg chambert <ge...@telia.com>.
Hi,


I have a kind of problem. My computer running as Apache server under 
fedora/linux is getting stuck
more or less regularly. It runs for around 2 days and then just does not 
respond, neither to internet nor to keybord/mouse.

I do not know if its the httpd or the linux/pc that goes into stall.

Im not so into linux that I know how to reach possible loggfiles from 
previous session before re-boot (if there are any), or how to
trigger generating such loggs.

Any clues or hints

Kindly Georg 


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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Luigi Cirillo <ap...@gmail.com>.
solved, webmin changed my NameVirtualHost, so the argument of
VirtualHost did not match

On Fri, Jun 6, 2014 at 1:23 PM, Luigi Cirillo <ap...@gmail.com> wrote:
> same configuration /etc/apache2 in new virtual machine works in the
> old one continue to not working.
> Please HELP!!!!!!!
>
> On Fri, Jun 6, 2014 at 11:07 AM, Luigi Cirillo <ap...@gmail.com> wrote:
>> No idea? very strange I will create another virtual machine with
>> default conf. If it works I will diff the conf files and I let you
>> know.
>> A question there a way to get verbose infos about why Apache return
>> "Forbidden"? I tried to set all logs to debug level but I got unuseful
>> infos about the module wsgi.
>>
>> On Thu, Jun 5, 2014 at 6:38 PM, Luigi Cirillo <ap...@gmail.com> wrote:
>>> Yes it is, in debian with the command "a2ensite" it create a link in
>>> folder "site-enable" to the virtual host conf file in "site-available"
>>>
>>> On Thu, Jun 5, 2014 at 6:23 PM, Frederik Nosi <fr...@postecom.it> wrote:
>>>> Maybe you'r virtual host configuration file wasn'r included from the main
>>>> apache conf file. Not sure how it works on ubuntu though, maybe you should
>>>> place it on a particular directory with a particular extension, eg. in
>>>> RedHat you should put it in /etc/httpd/conf.d with a filename ending with
>>>> .conf
>>>>
>>>>
>>>> grep for Include in your conf dir in case.
>>>>
>>>>
>>>> F
>>>>
>>>>
>>>>
>>>>
>>>> On 06/05/2014 06:04 PM, Luigi Cirillo wrote:
>>>>>
>>>>> 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 <fr...@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
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Luigi Cirillo <ap...@gmail.com>.
same configuration /etc/apache2 in new virtual machine works in the
old one continue to not working.
Please HELP!!!!!!!

On Fri, Jun 6, 2014 at 11:07 AM, Luigi Cirillo <ap...@gmail.com> wrote:
> No idea? very strange I will create another virtual machine with
> default conf. If it works I will diff the conf files and I let you
> know.
> A question there a way to get verbose infos about why Apache return
> "Forbidden"? I tried to set all logs to debug level but I got unuseful
> infos about the module wsgi.
>
> On Thu, Jun 5, 2014 at 6:38 PM, Luigi Cirillo <ap...@gmail.com> wrote:
>> Yes it is, in debian with the command "a2ensite" it create a link in
>> folder "site-enable" to the virtual host conf file in "site-available"
>>
>> On Thu, Jun 5, 2014 at 6:23 PM, Frederik Nosi <fr...@postecom.it> wrote:
>>> Maybe you'r virtual host configuration file wasn'r included from the main
>>> apache conf file. Not sure how it works on ubuntu though, maybe you should
>>> place it on a particular directory with a particular extension, eg. in
>>> RedHat you should put it in /etc/httpd/conf.d with a filename ending with
>>> .conf
>>>
>>>
>>> grep for Include in your conf dir in case.
>>>
>>>
>>> F
>>>
>>>
>>>
>>>
>>> On 06/05/2014 06:04 PM, Luigi Cirillo wrote:
>>>>
>>>> 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 <fr...@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
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Luigi Cirillo <ap...@gmail.com>.
No idea? very strange I will create another virtual machine with
default conf. If it works I will diff the conf files and I let you
know.
A question there a way to get verbose infos about why Apache return
"Forbidden"? I tried to set all logs to debug level but I got unuseful
infos about the module wsgi.

On Thu, Jun 5, 2014 at 6:38 PM, Luigi Cirillo <ap...@gmail.com> wrote:
> Yes it is, in debian with the command "a2ensite" it create a link in
> folder "site-enable" to the virtual host conf file in "site-available"
>
> On Thu, Jun 5, 2014 at 6:23 PM, Frederik Nosi <fr...@postecom.it> wrote:
>> Maybe you'r virtual host configuration file wasn'r included from the main
>> apache conf file. Not sure how it works on ubuntu though, maybe you should
>> place it on a particular directory with a particular extension, eg. in
>> RedHat you should put it in /etc/httpd/conf.d with a filename ending with
>> .conf
>>
>>
>> grep for Include in your conf dir in case.
>>
>>
>> F
>>
>>
>>
>>
>> On 06/05/2014 06:04 PM, Luigi Cirillo wrote:
>>>
>>> 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 <fr...@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
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Luigi Cirillo <ap...@gmail.com>.
Yes it is, in debian with the command "a2ensite" it create a link in
folder "site-enable" to the virtual host conf file in "site-available"

On Thu, Jun 5, 2014 at 6:23 PM, Frederik Nosi <fr...@postecom.it> wrote:
> Maybe you'r virtual host configuration file wasn'r included from the main
> apache conf file. Not sure how it works on ubuntu though, maybe you should
> place it on a particular directory with a particular extension, eg. in
> RedHat you should put it in /etc/httpd/conf.d with a filename ending with
> .conf
>
>
> grep for Include in your conf dir in case.
>
>
> F
>
>
>
>
> On 06/05/2014 06:04 PM, Luigi Cirillo wrote:
>>
>> 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 <fr...@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
>>
>
>
> ---------------------------------------------------------------------
> 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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Frederik Nosi <fr...@postecom.it>.
Maybe you'r virtual host configuration file wasn'r included from the 
main apache conf file. Not sure how it works on ubuntu though, maybe you 
should place it on a particular directory with a particular extension, 
eg. in RedHat you should put it in /etc/httpd/conf.d with a filename 
ending with .conf


grep for Include in your conf dir in case.


F



On 06/05/2014 06:04 PM, Luigi Cirillo wrote:
> 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 <fr...@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
>


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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Luigi Cirillo <ap...@gmail.com>.
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 <fr...@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


Re: [users] Apache2 Trying to retrieve at least an index but Forbidden

Posted by Frederik Nosi <fr...@postecom.it>.
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