Create virtualhost manually

3 posts / 0 new
Last post
#1 Thu, 06/05/2014 - 11:58
appost

Create virtualhost manually

I created a virtual host file: ServerName indextest.com DocumentRoot /var/www/index/ ServerAlias www.indextest.com Order deny,allow Allow from all Options Indexes FollowSymLinks

    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

But accessing to www.indextest.com:

#

Forbidden

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

#

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 177 Jun 5 16:36 index.html -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

#

I tried to copy the file index.html in /home/domain/public_html/ created with virtualmin and it works.

Do you know which directive block the virtual host indetest.com?

Thank you

Fri, 06/06/2014 - 04:33
appost

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: Is 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.

Fri, 06/06/2014 - 06:47
appost

same configuration /etc/apache2 in new virtual machine works in the old one continue to not working. Please HELP!!!!!!!

Topic locked