1, following this tutorial to setup apache2
http://gettingstartedwithchef.com/first-steps-with-chef.html
When you finish first step, you will receive 403 forbidden page because there is no index file under apache.
2, add index.html to apache2
A: add index.html into this folder:
[root@new-host-3 chef-repo]# ll cookbooks/apache2/files/default/
index.html
B: vim chef-repo/cookbooks/apache2/recipes/default.rb
add:
cookbook_file "/var/www/html/index.html" do
source "index.html"
mode "0644"
end
3: run again:
chef-solo -c solo.rb -j web.json
Subscribe to:
Post Comments (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...
-
I used 7z to zip this file under Windows, try to unzip it under linux [ang@walker temp]$ gunzip 2011.sdf.zip gunzip: 2011.sdf.zip: unkno...
Thanks for sharing this Information !!
ReplyDeleteCheck out More Linux Related.
(Installation/Configururation/Trouble Shooting etc) at :
Linux Trouble Shooting