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 Fri, 06 Jun 2014 11:23:51 GMT
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 <appost2@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 <appost2@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 <frederik.nosi@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 <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
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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