# Passenger and 403s

**URL:** <https://www.ruby-forum.com/t/passenger-and-403s/174089>\
**Category:** Rails\
**Created:** [August 20, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/passenger-and-403s/174089 "2009-08-20T18:34:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliottg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b77776/32.png) [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Post date:** [August 20, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/passenger-and-403s/174089/1 "2009-08-20T18:34:42Z")

</div>

I am setting up Passenger on my dev box and I am running into an issue  
getting the ServerName on a vHost to work. The code below allows  
localhost to work as planned. However when I try to pull up the app  
using the ServerName “livewiredmusic.local” I always get a 403.

Also, I installed the Passenger Pref Pane just to see if that would  
work, but I get the same 403 using the code it generates. FYI I  
followed Ryan B. screencast…

I gave the app’s public dir 777 at one point as well and still got the  
403.

This is my httpd.conf:

NameVirtualHost _:80  
\<VirtualHost :80\>  
ServerName livewiredmusic.local  
DocumentRoot /Users/elliott/Documents/__/WebSites/  
 [LiveWiredMusic.org/LiveWiredMusic/public](http://LiveWiredMusic.org/LiveWiredMusic/public)  
\<Directory "/Users/elliott/Documents/_\*\*/WebSites/  
[LiveWiredMusic.org/LiveWiredMusic/public](http://LiveWiredMusic.org/LiveWiredMusic/public)"\>  
Order allow,deny  
Allow from all

Then in /etc/hosts I added:  
127.0.0.1 livewiredmusic.local

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![elliottg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b77776/32.png) [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Post date:** [August 20, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/passenger-and-403s/174089/2 "2009-08-20T20:15:59Z")

</div>

Any insight on this guys?

---

<div class="post-metadata">

**Author:** ![elliottg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b77776/32.png) [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Post date:** [August 21, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/passenger-and-403s/174089/3 "2009-08-21T19:59:05Z")

</div>

So… The fix was this.

I know very little about networking,DNS and IP protocol variants, for  
whatever reason setting my server name to bind to 127.0.0.1 in /etc/  
hosts was not working.

Instead either  
fe80::1%lo0 livewiredmusic.local  
::1 livewiredmusic.local

worked fine.
