質問編集履歴

3

#vim /etc/httpd/conf/httpd.confを記入

2018/07/17 12:08

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -106,76 +106,182 @@
106
106
 
107
107
 
108
108
 
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- # Use name-based virtual hosting.
138
-
139
- #
140
-
141
- NameVirtualHost *:80
142
-
143
-
144
-
145
- #
146
-
147
- # NOTE: NameVirtualHost cannot be used without a port specifier
148
-
149
- # (e.g. :80) if mod_ssl is being used, due to the nature of the
150
-
151
- # SSL protocol.
152
-
153
- #
154
-
155
-
156
-
157
- #
158
-
159
- # VirtualHost example:
160
-
161
- # Almost any Apache directive may go into a VirtualHost container.
162
-
163
- # The first VirtualHost section is used for requests without a known
164
-
165
- # server name.
166
-
167
- #
168
-
169
- #<VirtualHost *:80>
170
-
171
- # ServerAdmin webmaster@dummy-host.example.com
172
-
173
- # DocumentRoot /www/docs/dummy-host.example.com
174
-
175
- # ServerName dummy-host.example.com
176
-
177
- # ErrorLog logs/dummy-host.example.com-error_log
178
-
179
- # CustomLog logs/dummy-host.example.com-access_log common
180
-
181
- #</VirtualHost>
109
+ ```
110
+
111
+ Last login: Tue Jul 17 14:11:57 on ttys000
112
+
113
+ kenta:~ okuyamakenta$ ssh -p 61203 smart@160.16.229.61
114
+
115
+ Last login: Tue Jul 17 17:31:30 2018 from kd111239183103.au-net.ne.jp
116
+
117
+
118
+
119
+ SAKURA Internet [Virtual Private Server SERVICE]
120
+
121
+
122
+
123
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
124
+
125
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf.d/xn--vckvb6c8fw90p7kt9m0f.jp.conf
126
+
127
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
128
+
129
+
130
+
131
+
132
+
133
+ ```
134
+
135
+ Last login: Tue Jul 17 14:11:57 on ttys000
136
+
137
+ kenta:~ okuyamakenta$ ssh -p 61203 smart@160.16.229.61
138
+
139
+ Last login: Tue Jul 17 17:31:30 2018 from kd111239183103.au-net.ne.jp
140
+
141
+
142
+
143
+ SAKURA Internet [Virtual Private Server SERVICE]
144
+
145
+
146
+
147
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
148
+
149
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf.d/xn--vckvb6c8fw90p7kt9m0f.jp.conf
150
+
151
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ #
184
+
185
+ # This is the main Apache server configuration file. It contains the
186
+
187
+ # configuration directives that give the server its instructions.
188
+
189
+ # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
190
+
191
+ # In particular, see
192
+
193
+ # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
194
+
195
+ # for a discussion of each configuration directive.
196
+
197
+ #
198
+
199
+ #
200
+
201
+ # Do NOT simply read the instructions in here without understanding
202
+
203
+ # what they do. They're here only as hints or reminders. If you are unsure
204
+
205
+ # consult the online docs. You have been warned.
206
+
207
+ #
208
+
209
+ # The configuration directives are grouped into three basic sections:
210
+
211
+ # 1. Directives that control the operation of the Apache server process as a
212
+
213
+ # whole (the 'global environment').
214
+
215
+ # 2. Directives that define the parameters of the 'main' or 'default' server,
216
+
217
+ # which responds to requests that aren't handled by a virtual host.
218
+
219
+ # These directives also provide default values for the settings
220
+
221
+ # of all virtual hosts.
222
+
223
+ # 3. Settings for virtual hosts, which allow Web requests to be sent to
224
+
225
+ # different IP addresses or hostnames and have them handled by the
226
+
227
+ # same Apache server process.
228
+
229
+ #
230
+
231
+ # Configuration and logfile names: If the filenames you specify for many
232
+
233
+ # of the server's control files begin with "/" (or "drive:/" for Win32), the
234
+
235
+ # server will use that explicit path. If the filenames do *not* begin
236
+
237
+ # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
238
+
239
+ # with ServerRoot set to "/etc/httpd" will be interpreted by the
240
+
241
+ # server as "/etc/httpd/logs/foo.log".
242
+
243
+ #
244
+
245
+
246
+
247
+ ### Section 1: Global Environment
248
+
249
+ #
250
+
251
+ # The directives in this section affect the overall operation of Apache,
252
+
253
+ # such as the number of concurrent requests it can handle or where it
254
+
255
+ # can find its configuration files.
256
+
257
+ #
258
+
259
+
260
+
261
+ #
262
+
263
+ # Don't give away too much information about all the subcomponents
264
+
265
+ # we are running. Comment out this line if you don't mind remote sites
266
+
267
+ # finding out what major optional modules you are running
268
+
269
+ ServerTokens Prod
270
+
271
+
272
+
273
+ #
274
+
275
+ # ServerRoot: The top of the directory tree under which the server's
276
+
277
+ # configuration, error, and log files are kept.
278
+
279
+ #
280
+
281
+ # NOTE! If you intend to place this on an NFS (or otherwise network)
282
+
283
+ -- 挿入 -- 20,1 先頭
284
+
285
+
286
+
287
+ ```

2

#vim /etc/httpd/conf/httpd.confを記入

2018/07/17 12:08

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -86,9 +86,53 @@
86
86
 
87
87
 
88
88
 
89
- (一部)
89
+ Last login: Tue Jul 17 14:11:57 on ttys000
90
90
 
91
+ kenta:~ okuyamakenta$ ssh -p 61203 smart@160.16.229.61
92
+
93
+ Last login: Tue Jul 17 17:31:30 2018 from kd111239183103.au-net.ne.jp
94
+
95
+
96
+
97
+ SAKURA Internet [Virtual Private Server SERVICE]
98
+
99
+
100
+
91
- #
101
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
102
+
103
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf.d/xn--vckvb6c8fw90p7kt9m0f.jp.conf
104
+
105
+ [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
92
136
 
93
137
  # Use name-based virtual hosting.
94
138
 
@@ -110,8 +154,28 @@
110
154
 
111
155
 
112
156
 
157
+ #
113
158
 
159
+ # VirtualHost example:
114
160
 
161
+ # Almost any Apache directive may go into a VirtualHost container.
115
162
 
163
+ # The first VirtualHost section is used for requests without a known
116
164
 
165
+ # server name.
166
+
167
+ #
168
+
169
+ #<VirtualHost *:80>
170
+
171
+ # ServerAdmin webmaster@dummy-host.example.com
172
+
117
- 個人的に考えられる事ですが、日本語ドメインを変換して使用いているのですが、そちらが影響している可能性もありますでしょうか?
173
+ # DocumentRoot /www/docs/dummy-host.example.com
174
+
175
+ # ServerName dummy-host.example.com
176
+
177
+ # ErrorLog logs/dummy-host.example.com-error_log
178
+
179
+ # CustomLog logs/dummy-host.example.com-access_log common
180
+
181
+ #</VirtualHost>

1

httpd.confの記述内容を追記しています。

2018/07/17 12:04

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -41,3 +41,77 @@
41
41
 
42
42
 
43
43
  ![イメージ説明](e1702ae1ca68ea6097886ee10fca5009.png)
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+ 【Webサーバの設定について】
54
+
55
+ #httpd.conf
56
+
57
+
58
+
59
+ <VirtualHost *:80>
60
+
61
+ ServerName ***.jp
62
+
63
+ DocumentRoot "/var/www/***.jp/public_html"
64
+
65
+ DirectoryIndex index.html index.php
66
+
67
+ ErrorLog /var/log/httpd/***.jp_error_log
68
+
69
+ CustomLog /var/log/httpd/***.jp_access_log combined
70
+
71
+ AddDefaultCharset UTF-8
72
+
73
+ <Directory "/var/www/***.jp/public_html">
74
+
75
+ AllowOverride All
76
+
77
+ </Directory>
78
+
79
+ </VirtualHost>
80
+
81
+
82
+
83
+
84
+
85
+ #vim /etc/httpd/conf/httpd.conf
86
+
87
+
88
+
89
+ (一部)
90
+
91
+ #
92
+
93
+ # Use name-based virtual hosting.
94
+
95
+ #
96
+
97
+ NameVirtualHost *:80
98
+
99
+
100
+
101
+ #
102
+
103
+ # NOTE: NameVirtualHost cannot be used without a port specifier
104
+
105
+ # (e.g. :80) if mod_ssl is being used, due to the nature of the
106
+
107
+ # SSL protocol.
108
+
109
+ #
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ 個人的に考えられる事ですが、日本語ドメインを変換して使用いているのですが、そちらが影響している可能性もありますでしょうか?