This is how I have it: <VirtualHost *:80> ServerName hostname DocumentRoot /installDir/foreman/public RailsBaseURI /foreman </VirtualHost> When I restart apache, the page comes back blank. Is there any permissions issues I should be aware of? Should I make the directory owned by apache? Thanks, Henry -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I suggest you go through the module, esp http://github.com/ohadlevy/puppet-foreman/blob/master/foreman/manifests/passenger.pp make sure that config/environment.rb file is own by the user that runs foreman (e.g. foreman). getting a blank page from passenger on rails app, usually means permissions error to access the database. Ohad On Tue, Jun 8, 2010 at 11:47 PM, CraftyTech <hmmedina@gmail.com> wrote:> This is how I have it: > > <VirtualHost *:80> > ServerName hostname > DocumentRoot /installDir/foreman/public > RailsBaseURI /foreman > </VirtualHost> > > When I restart apache, the page comes back blank. Is there any > permissions issues I should be aware of? Should I make the directory > owned by apache? > > Thanks, > > Henry > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
My directory is owned by foreman, and this is my setup. I haven''t had any issues. <VirtualHost <ip address>:443> ServerName puppet ServerAlias foreman RailsAutoDetect On DocumentRoot /usr/share/foreman/public # Use puppet certificates for SSL SSLEngine on SSLCertificateFile /var/lib/puppet/ssl/certs/puppet.<domain>.pem SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/puppet.<domain>.pem SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem SSLVerifyClient optional SSLVerifyDepth 3 SSLOptions +StdEnvVars </VirtualHost> On Tue, Jun 8, 2010 at 9:47 AM, CraftyTech <hmmedina@gmail.com> wrote:> This is how I have it: > > <VirtualHost *:80> > ServerName hostname > DocumentRoot /installDir/foreman/public > RailsBaseURI /foreman > </VirtualHost> > > When I restart apache, the page comes back blank. Is there any > permissions issues I should be aware of? Should I make the directory > owned by apache? > > Thanks, > > Henry > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I installed foreman from source, and run it from directory /apps. Hence my DocumentRoot is /apps/foreman/public. Since I''m running centos 5.4, I just created a symlink in /var/www/html/foreman to point to my DocumentRoot. I then used this symlink in the /etc/httpd/conf.d/ foreman.conf as the documentroot and this seems to work for me. This is my conf file: <VirtualHost *:80> ServerName hostname DocumentRoot /var/www/html RailsBaseURI /foreman </VirtualHost> I''ll try it with the ssl config next. Thanks for the feedback. On Jun 8, 11:54 am, Jacob Hunt <jacob.r.h...@gmail.com> wrote:> My directory is owned by foreman, and this is my setup. I haven''t had any > issues. > > <VirtualHost <ip address>:443> > ServerName puppet > ServerAlias foreman > > RailsAutoDetect On > DocumentRoot /usr/share/foreman/public > > # Use puppet certificates for SSL > SSLEngine on > SSLCertificateFile /var/lib/puppet/ssl/certs/puppet.<domain>.pem > SSLCertificateKeyFile > /var/lib/puppet/ssl/private_keys/puppet.<domain>.pem > SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem > SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem > SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem > SSLVerifyClient optional > SSLVerifyDepth 3 > SSLOptions +StdEnvVars > > </VirtualHost> > > On Tue, Jun 8, 2010 at 9:47 AM, CraftyTech <hmmed...@gmail.com> wrote: > > This is how I have it: > > > <VirtualHost *:80> > > ServerName hostname > > DocumentRoot /installDir/foreman/public > > RailsBaseURI /foreman > > </VirtualHost> > > > When I restart apache, the page comes back blank. Is there any > > permissions issues I should be aware of? Should I make the directory > > owned by apache? > > > Thanks, > > > Henry > > > -- > > You received this message because you are subscribed to the Google Groups > > "Puppet Users" group. > > To post to this group, send email to puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.