> openbsd misc wrote:
> 
> > Did you try it with a dns name? I'm using /var/www/etc/hosts (httpd
is
> > chrooted per default) for that.
> 
> Bingo!

;-)

> # mkdir /var/www/etc/
> # cp /etc/hosts /var/www/etc/hosts
> # chown -R www:www /var/www/etc/hosts

Your chown is not a good idea. Should be:

chown root:wheel /var/www/etc/hosts
chmod 644 /var/www/etc/hosts

Never give write right to a webserver... ;-)

> It works!! Thank you!!!!

No problem... ;-)

Regards
  Hagen Volpers

Reply via email to