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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to