Hi all, I have just installed Tiger and am getting my dev environment back on track. I installed Apache 2.0.53 from DarwinPorts and all is working well. I have added a "ok" entry to my /etc/hosts that resolves to 127.0.0.1. I have the following in my httpd.conf: <VirtualHost *> ServerName ok DocumentRoot /Users/nmk/Internet/Sites/ok/public <Directory /Users/nmk/Internet/Sites/ok/public> AllowOverride All Order deny,allow Allow from all </Directory> </VirtualHost> When I try to access http://ok/ I get a Forbidden error. This is in the error_log: [Fri May 27 08:10:15 2005] [crit] [client 127.0.0.1] (13)Permission denied: /Users/nmk/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable Why is it looking for a .htaccess file under /Users/nmk?? Any ideas? Many thanks in advance, Nicky
> Why is it looking for a .htaccess file under /Users/nmIt iterates throughout each directory looking for a .htaccess. However I have no idea why there would be one in your Users folder. On 27 May 2005, at 07:19, Nickolay Kolev wrote:> Hi all, > > I have just installed Tiger and am getting my dev environment back > on track. I installed Apache 2.0.53 from DarwinPorts and all is > working well. > > I have added a "ok" entry to my /etc/hosts that resolves to 127.0.0.1. > > I have the following in my httpd.conf: > > <VirtualHost *> > ServerName ok > DocumentRoot /Users/nmk/Internet/Sites/ok/public > <Directory /Users/nmk/Internet/Sites/ok/public> > AllowOverride All > Order deny,allow > Allow from all > </Directory> > </VirtualHost> > > When I try to access http://ok/ I get a Forbidden error. > > This is in the error_log: > > [Fri May 27 08:10:15 2005] [crit] [client 127.0.0.1] (13)Permission > denied: /Users/nmk/.htaccess pcfg_openfile: unable to check > htaccess file, ensure it is readable > > Why is it looking for a .htaccess file under /Users/nmk?? > > Any ideas? > > Many thanks in advance, > Nicky > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
> It iterates throughout each directory looking for a >.htaccess. However I have no idea why there would be one >in your Users folder.And indeed there is none... I have compiled Apache fresh and installed it in another directory, still same thing with the new binary and a fresh config--whenever I point a DocumentRoot to a directory within my Users folder, I get the same message... that /Users/nmk/.htaccess is not readable. Still no solution. Nicky
I had the same problem on Fedora. It took me forever to discover the problem on my end. I had left out the following option in <Directory> Options ExecCGI FollowSymLinks The ExecCGI was the problem. Not sure if this is your issue, but try changing your config to: <VirtualHost *> ServerName ok DocumentRoot /Users/nmk/Internet/Sites/ok/public <Directory /Users/nmk/Internet/Sites/ok/public> AllowOverride All Options ExecCGI FollowSymLinks Order deny,allow Allow from all </Directory> </VirtualHost> I''m not sure if this helps, but it worked for me. I personally thought the error trace sucked, but was able to get it working. Good luck. -Joe http://objo.com ---------- In Ohio? Visit the Columbus Ruby Users Group at http://groups-beta.google.com/group/columbusrb __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
> I had the same problem on Fedora. It took me forever > to discover the problem on my end. > > I had left out the following option in <Directory> > Options ExecCGI FollowSymLinks > > The ExecCGI was the problem.Unfortunately, this is not the problem. I have put my rails app in the apache default root (/opt/local/apache2/htdocs/ok/) and it worked. It also works at that location as a vhost, so it makes me think this is a permissions problem. I cannot for the life of me figure it out... All was well under Panther with an identical setup. Any more ideas? Nicky
I''m not familiar with DarwinPorts'' default configuration, but is it possible that your requests are not being served by this VirtualHost directive? What happens when you add an ErrorLog directive inside the virtualhost container? are the .htaccess errors logged to your vhost-specific error file, or are they logged to the server default error file? Tyler
Also make sure you enabled name based virtual hosts. This has been my problem several times. eg in httpd.conf: NameVirtualHost *:80 This line might well be commented out by default, so its worth checking. Jason
Possible hack here, but why not create an empty .htaccess file and chmod it to the right value? Might work? On 27 May 2005, at 11:35, Nickolay Mitkov Kolev wrote:>> It iterates throughout each directory looking for a .htaccess. >> However I have no idea why there would be one in your Users folder. >> > > And indeed there is none... I have compiled Apache fresh and > installed it in another directory, still same thing with the new > binary and a fresh config--whenever I point a DocumentRoot to a > directory within my Users folder, I get the same message... that / > Users/nmk/.htaccess is not readable. > > Still no solution. > > Nicky > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails