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 Bates 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
<Directory "/Users/elliott/Documents/***/WebSites/
LiveWiredMusic.org/LiveWiredMusic/public">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Then in /etc/hosts I added:
127.0.0.1 livewiredmusic.local
Thanks for the help!
Any insight on this guys? On Aug 20, 12:33 pm, elliottg <x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote:> 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 Bates 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 > <Directory "/Users/elliott/Documents/***/WebSites/ > LiveWiredMusic.org/LiveWiredMusic/public"> > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > > Then in /etc/hosts I added: > 127.0.0.1 livewiredmusic.local > > Thanks for the help!
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. On Aug 20, 2:14 pm, elliottg <x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote:> Any insight on this guys? > > On Aug 20, 12:33 pm, elliottg <x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote: > > > > > 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 Bates 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 > > <Directory "/Users/elliott/Documents/***/WebSites/ > > LiveWiredMusic.org/LiveWiredMusic/public"> > > Order allow,deny > > Allow from all > > </Directory> > > </VirtualHost> > > > Then in /etc/hosts I added: > > 127.0.0.1 livewiredmusic.local > > > Thanks for the help!