質問編集履歴

2

更新

2015/08/29 10:31

投稿

Sfidante
Sfidante

スコア90

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- https://teratail.com/questions/15129
1
+ [https://teratail.com/questions/15129](https://teratail.com/questions/15129)
2
2
 
3
3
  に同じような質問をしてしまったため
4
4
 

1

修正

2015/08/29 10:31

投稿

Sfidante
Sfidante

スコア90

test CHANGED
File without changes
test CHANGED
@@ -1,313 +1,5 @@
1
- AWSを利用して、
1
+ https://teratail.com/questions/15129
2
2
 
3
- Apache:2.4.6
3
+ に同じような質問をしてしまったため
4
4
 
5
- Tomcat:7.0.42
6
-
7
- CentOS:6.5
8
-
9
- の環境でEC2を動作しております。
10
-
11
-
12
-
13
- URLで
14
-
15
- http://www.☓☓☓☓.jp:8080/☓☓☓☓/
16
-
17
- の8080を表示しないように
18
-
19
- (http://www.☓☓☓☓.jp/☓☓☓☓/)
20
-
21
- するために、
22
-
23
-
24
-
25
- httpd-proxy.conf内に
26
-
27
- ProxyPass /☓☓☓☓/ ajp://www.☓☓☓☓.jp/☓☓☓☓/
28
-
29
- と記載すると思うのですが、
30
-
31
-
32
-
33
- その記載をしていなくても、8080を省略できており、
34
-
35
- どこでその設定がされているのかが不明です。
36
-
37
-
38
-
39
- AWSでサーバー環境を構築する際に
40
-
41
- AWSマーケットプレイスを利用しているため、
42
-
43
- 詳細の設定状況がわからない状態です。
44
-
45
-
46
-
47
- 自分でどこを確認すればよいのかわからないため、
48
-
49
- 皆様の知恵を拝借できればと思います。
50
-
51
-
52
-
53
- 何卒、よろしくお願いします。
5
+ こちらでよろしくお願いいたします。
54
-
55
-
56
-
57
- 関係があると思われる設定ファイルを記載いたします。
58
-
59
-
60
-
61
- 【httpd.conf】
62
-
63
- ```
64
-
65
- ServerRoot "/usr"
66
-
67
- Include /etc/httpd/conf/extra/httpd-proxy.conf
68
-
69
- Listen 80
70
-
71
- LoadModule authn_file_module /etc/httpd/modules/mod_authn_file.so
72
-
73
- LoadModule authn_core_module /etc/httpd/modules/mod_authn_core.so
74
-
75
- LoadModule authz_host_module /etc/httpd/modules/mod_authz_host.so
76
-
77
- LoadModule authz_groupfile_module /etc/httpd/modules/mod_authz_groupfile.so
78
-
79
- LoadModule authz_user_module /etc/httpd/modules/mod_authz_user.so
80
-
81
- LoadModule authz_core_module /etc/httpd/modules/mod_authz_core.so
82
-
83
- LoadModule access_compat_module /etc/httpd/modules/mod_access_compat.so
84
-
85
- LoadModule auth_basic_module /etc/httpd/modules/mod_auth_basic.so
86
-
87
- LoadModule reqtimeout_module /etc/httpd/modules/mod_reqtimeout.so
88
-
89
- LoadModule filter_module /etc/httpd/modules/mod_filter.so
90
-
91
- LoadModule mime_module /etc/httpd/modules/mod_mime.so
92
-
93
- LoadModule log_config_module /etc/httpd/modules/mod_log_config.so
94
-
95
- LoadModule env_module /etc/httpd/modules/mod_env.so
96
-
97
- LoadModule headers_module /etc/httpd/modules/mod_headers.so
98
-
99
- LoadModule setenvif_module /etc/httpd/modules/mod_setenvif.so
100
-
101
- LoadModule version_module /etc/httpd/modules/mod_version.so
102
-
103
- LoadModule proxy_module /etc/httpd/modules/mod_proxy.so
104
-
105
- LoadModule proxy_ftp_module /etc/httpd/modules/mod_proxy_ftp.so
106
-
107
- LoadModule proxy_http_module /etc/httpd/modules/mod_proxy_http.so
108
-
109
- LoadModule proxy_wstunnel_module /etc/httpd/modules/mod_proxy_wstunnel.so
110
-
111
- LoadModule proxy_ajp_module /etc/httpd/modules/mod_proxy_ajp.so
112
-
113
- LoadModule mpm_event_module /etc/httpd/modules/mod_mpm_event.so
114
-
115
- LoadModule unixd_module /etc/httpd/modules/mod_unixd.so
116
-
117
- LoadModule status_module /etc/httpd/modules/mod_status.so
118
-
119
- LoadModule autoindex_module /etc/httpd/modules/mod_autoindex.so
120
-
121
- LoadModule dir_module /etc/httpd/modules/mod_dir.so
122
-
123
- LoadModule alias_module /etc/httpd/modules/mod_alias.so
124
-
125
- <IfModule unixd_module>
126
-
127
- User apache
128
-
129
- Group apache
130
-
131
- </IfModule>
132
-
133
- ServerAdmin you@example.com
134
-
135
- <Directory />
136
-
137
- AllowOverride none
138
-
139
- Require all denied
140
-
141
- </Directory>
142
-
143
- DocumentRoot "/var/www/html"
144
-
145
- <Directory "/var/www/html">
146
-
147
- Options Indexes FollowSymLinks
148
-
149
- AllowOverride None
150
-
151
- Require all granted
152
-
153
- </Directory>
154
-
155
- <IfModule dir_module>
156
-
157
- DirectoryIndex index.html
158
-
159
- </IfModule>
160
-
161
- <Files ".ht*">
162
-
163
- Require all denied
164
-
165
- </Files>
166
-
167
- ErrorLog "/var/log/httpd/error_log"
168
-
169
- LogLevel warn
170
-
171
- <IfModule log_config_module>
172
-
173
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
174
-
175
- LogFormat "%h %l %u %t \"%r\" %>s %b" common
176
-
177
- <IfModule logio_module>
178
-
179
- LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
180
-
181
- </IfModule>
182
-
183
- CustomLog "/var/log/httpd/access_log" common
184
-
185
- </IfModule>
186
-
187
- <IfModule alias_module>
188
-
189
- ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
190
-
191
- </IfModule>
192
-
193
- <IfModule cgid_module>
194
-
195
- </IfModule>
196
-
197
- <Directory "/var/www/cgi-bin">
198
-
199
- AllowOverride None
200
-
201
- Options None
202
-
203
- Require all granted
204
-
205
- </Directory>
206
-
207
- <IfModule mime_module>
208
-
209
- TypesConfig /etc/httpd/conf/mime.types
210
-
211
- AddType application/x-compress .Z
212
-
213
- AddType application/x-gzip .gz .tgz
214
-
215
- </IfModule>
216
-
217
- <IfModule proxy_html_module>
218
-
219
- Include /etc/httpd/conf/extra/proxy-html.conf
220
-
221
- </IfModule>
222
-
223
- <IfModule ssl_module>
224
-
225
- SSLRandomSeed startup builtin
226
-
227
- SSLRandomSeed connect builtin
228
-
229
- </IfModule>
230
-
231
- ```
232
-
233
-
234
-
235
- 【server.xml】
236
-
237
- ```
238
-
239
- <?xml version='1.0' encoding='utf-8'?>
240
-
241
- <Server port="8005" shutdown="SHUTDOWN">
242
-
243
- <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
244
-
245
- <Listener className="org.apache.catalina.core.JasperListener" />
246
-
247
- <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
248
-
249
- <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
250
-
251
- <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
252
-
253
-
254
-
255
- <GlobalNamingResources>
256
-
257
- <Resource name="UserDatabase" auth="Container"
258
-
259
- type="org.apache.catalina.UserDatabase"
260
-
261
- description="User database that can be updated and saved"
262
-
263
- factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
264
-
265
- pathname="conf/tomcat-users.xml" />
266
-
267
- </GlobalNamingResources>
268
-
269
-
270
-
271
- <Service name="Catalina">
272
-
273
- <Connector port="8080" protocol="HTTP/1.1"
274
-
275
- connectionTimeout="20000"
276
-
277
- redirectPort="8443" />
278
-
279
- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
280
-
281
- <Engine name="Catalina" defaultHost="localhost">
282
-
283
-
284
-
285
- <Realm className="org.apache.catalina.realm.LockOutRealm">
286
-
287
- <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
288
-
289
- resourceName="UserDatabase"/>
290
-
291
- </Realm>
292
-
293
-
294
-
295
- <Host name="localhost" appBase="webapps"
296
-
297
- unpackWARs="true" autoDeploy="true">
298
-
299
- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
300
-
301
- prefix="localhost_access_log." suffix=".txt"
302
-
303
- pattern="%h %l %u %t &quot;%r&quot; %s %b" />
304
-
305
- </Host>
306
-
307
- </Engine>
308
-
309
- </Service>
310
-
311
- </Server>
312
-
313
- ```