dear all, i am having problems with setting up a virtual host (Aptana Project directory) on a LAMP installation on ubuntu 11 (via tasksel).
i can access /var/www via htp://localhost, but accessing /home/tg/Aptana… via htp://ea-dev returns an "You don't have permission to access / on this server."
this is my apache2.conf: http://pastebin.com/Yja02tnE
this is my ea-dev located in /etc/apache2/sites-available/: http://pastebin.com/U1Vu2jxD
thats what i get in the error.log: [crit] [client 127.0.0.1] (13)Permission denied: /home/tg/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
I really dont understand why its written /home/tg and not /home/tg/Aptana… but maybe its just an abbreviation.
also, when i restart apache, i get the following:
[Fri Jun 03 15:58:19 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
Best Answer
If don't need to use any
.htaccess
file, try to change fromto
in the
<Directory>
sectionAnyway, the
www-data
user needs read permissions in all directories in the path'home/tg/Aptana Studio 3 Workspace/ea-dev'
This should help.