[Catalyst] apache2/mod_perl virtualhost misfire --

2007-06-28 Thread Dwalu Z. Khasu
Hi,

I'm hoping someone with more sleep than I, can help me spot what seems to 
be a simple  nasty misconfiguration :s

I've followed the instructions to setup apache/modperl for my new cat 
application as described in the cookbook and on restart, I can see the 
debug output in the default log--httpd-error.log so I know the 
application's being instantiated.

However I can't access the app via the vhost config. and keep getting
errors in the default logfile rather than the named one...neither can I 
serve static files or anything else.  Requests at the named vhost is being 
served by the default config :(

Here's the relevant vhost config--anyone care to share a clue?  Thanx in 
advance!

+==+
NameVirtualHost myapp.mydomain.com:4000

VirtualHost myapp.mydomain.com:4000
DocumentRoot /home/dwalu/myapp/root

ServerName myapp.mydomain.com
ServerAlias myapp.mydomain.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog /var/log/myapp.mydomain.com-error_log
CustomLog /var/log/myapp.mydomain.com-access_log common

Location /static
  SetHandler default-handler
/Location

PerlSwitches -I/home/dwalu/myapp/lib
PerlModule myapp

Location /
  SetHandler modperl
  PerlResponseHandler myapp
/Location

/VirtualHost

-- 
- Dwalu
.peace
--
I am an important person in this world -
Now is the most important time in my life -
My mistakes are my best teachers -
So I will be fearless.
- Student Creed

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] apache2/mod_perl virtualhost misfire --

2007-06-28 Thread Perrin Harkins

On 6/28/07, Dwalu Z. Khasu [EMAIL PROTECTED] wrote:

I'm hoping someone with more sleep than I, can help me spot what seems to
be a simple  nasty misconfiguration :s


I don't think you've shown enough of the config file to help you.  You
could look at the examples in the apache docs:
http://httpd.apache.org/docs/2.0/vhosts/examples.html


However I can't access the app via the vhost config.


Try accessing a static file through the vhost.  If that doesn't work
either, then you know it's not a Catalyst problem.  Check the headers
you're sending to make sure they include a Host: header matching your
ServerName directive.

- Perrin

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/