Skip to content

Commit a598602

Browse files
committed
Files not being created, or otherwise overwritten - missing after creation. Need to investigate.
1 parent 7987049 commit a598602

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

cloud-formation/basic-tomcat-instance.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,23 @@
6969
"httpd": []
7070
}
7171
}
72+
},
73+
74+
"files" : {
75+
"/var/www/html/index.html": {
76+
"content": {
77+
"Fn::Join": [
78+
"\n",
79+
[
80+
"<h1>Hello world :)</h1>",
81+
"<p>Example file served by Apache</p>"
82+
]
83+
]
84+
},
85+
"mode": "000644",
86+
"owner": "root",
87+
"group": "root"
88+
}
7289
}
7390
}
7491
},
@@ -140,7 +157,7 @@
140157
"chkconfig --level 345 httpd on\n",
141158

142159
"# Proxy all requests to Tomcat\n",
143-
"echo \"ProxyPass / ajp://localhost:8009/\" >> /etc/httpd/conf/httpd.conf\n",
160+
"echo \"ProxyPass /tomcat ajp://localhost:8009/\" >> /etc/httpd/conf/httpd.conf\n",
144161

145162
"# Start servers\n",
146163
"service tomcat7 start\n",

0 commit comments

Comments
 (0)