Need help with apache2 cookbook

Hi,

I’m an infant with this stuff. I have a site.rb file, which has the following:

web_app “site.com” do
server_name "site.com"
server_aliases [ “www.site.com” ]
docroot "/var/www/vhosts/site.com"
end

I have two questions:

  1. How do I actually get this site recipe to generate the SSL config for the
    virtual host?
  2. I defined docroot path, which I thought chef would create the directory for
    me, but alas, it didn’t. Do I need to create it on manually, or am I doing it
    incorrectly?

There is a likely chance that I’m a total idiot, and I’m doing a lot of things
incorrectly, so please bear with my noobie questions.

Thanks.

Hello to you.

  1. Use mod_ssl recipe for it. It will turn on 443 port.
  2. As I can see, it will not create directory. You need to create it separately.

On Thu, Mar 27, 2014 at 5:08 AM, williamsani@hotmail.com wrote:

Hi,

I'm an infant with this stuff. I have a site.rb file, which has the following:

web_app "site.com" do
server_name "site.com"
server_aliases [ "www.site.com" ]
docroot "/var/www/vhosts/site.com"
end

I have two questions:

  1. How do I actually get this site recipe to generate the SSL config for the
    virtual host?
  2. I defined docroot path, which I thought chef would create the directory for
    me, but alas, it didn't. Do I need to create it on manually, or am I doing it
    incorrectly?

There is a likely chance that I'm a total idiot, and I'm doing a lot of things
incorrectly, so please bear with my noobie questions.

Thanks.

--
Best regards,
Egor
http://aylium.net

Thanks!

  1. I did use mod_ssl, but I want to enable SSL for specific virtual hosts
    (e.g. *:443 instead of *:80).
  2. Fair enough. I just added this to the function, but curious to know why
    the virtual host directory is not checked for, or created.

William

-----Original Message-----
From: Egor Medvedev [mailto:methodx@aylium.net]
Sent: Saturday, March 29, 2014 8:07 PM
To: chef@lists.opscode.com; chef@lists.opscode.com
Subject: [chef] Re: Need help with apache2 cookbook

Hello to you.

  1. Use mod_ssl recipe for it. It will turn on 443 port.
  2. As I can see, it will not create directory. You need to create it
    separately.

On Thu, Mar 27, 2014 at 5:08 AM, williamsani@hotmail.com wrote:

Hi,

I'm an infant with this stuff. I have a site.rb file, which has the
following:

web_app "site.com" do
server_name "site.com"
server_aliases [ "www.site.com" ]
docroot "/var/www/vhosts/site.com"
end

I have two questions:

  1. How do I actually get this site recipe to generate the SSL config
    for the virtual host?
  2. I defined docroot path, which I thought chef would create the
    directory for me, but alas, it didn't. Do I need to create it on
    manually, or am I doing it incorrectly?

There is a likely chance that I'm a total idiot, and I'm doing a lot
of things incorrectly, so please bear with my noobie questions.

Thanks.

--
Best regards,
Egor
http://aylium.net

  1. Hmm, for non-standard port, you should check LWRP, or just create
    wrapper cookbook.
  2. I think, in some cases authors allow you to install apache2, but
    not create directory, because you should create it with your
    application cookbook. Just a concept.

On Sun, Mar 30, 2014 at 11:43 PM, William Sani williamsani@hotmail.com wrote:

Thanks!

  1. I did use mod_ssl, but I want to enable SSL for specific virtual hosts
    (e.g. *:443 instead of *:80).
  2. Fair enough. I just added this to the function, but curious to know why
    the virtual host directory is not checked for, or created.

William

-----Original Message-----
From: Egor Medvedev [mailto:methodx@aylium.net]
Sent: Saturday, March 29, 2014 8:07 PM
To: chef@lists.opscode.com; chef@lists.opscode.com
Subject: [chef] Re: Need help with apache2 cookbook

Hello to you.

  1. Use mod_ssl recipe for it. It will turn on 443 port.
  2. As I can see, it will not create directory. You need to create it
    separately.

On Thu, Mar 27, 2014 at 5:08 AM, williamsani@hotmail.com wrote:

Hi,

I'm an infant with this stuff. I have a site.rb file, which has the
following:

web_app "site.com" do
server_name "site.com"
server_aliases [ "www.site.com" ]
docroot "/var/www/vhosts/site.com"
end

I have two questions:

  1. How do I actually get this site recipe to generate the SSL config
    for the virtual host?
  2. I defined docroot path, which I thought chef would create the
    directory for me, but alas, it didn't. Do I need to create it on
    manually, or am I doing it incorrectly?

There is a likely chance that I'm a total idiot, and I'm doing a lot
of things incorrectly, so please bear with my noobie questions.

Thanks.

--
Best regards,
Egor
http://aylium.net

--
Best regards,
Egor
http://aylium.net