質問編集履歴
7
コピペミスの訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
<VirtualHost *:49152>
|
64
64
|
|
65
|
-
DocumentRoot "
|
65
|
+
DocumentRoot "//Applications/MAMP/htdocs/テストフォルダ01" ←コピペミス
|
66
66
|
|
67
67
|
<Directory "/Applications/MAMP/htdocs/テストフォルダ01">
|
68
68
|
|
6
コピペミスの訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
<VirtualHost *:49152>
|
64
64
|
|
65
|
-
DocumentRoot "//Applications/MAMP/htdocs/テストフォルダ01"
|
65
|
+
DocumentRoot "**/**/Applications/MAMP/htdocs/テストフォルダ01" ←コピペミス
|
66
66
|
|
67
67
|
<Directory "/Applications/MAMP/htdocs/テストフォルダ01">
|
68
68
|
|
5
httpd-ssl.confでの変更箇所全て。不足分の補足。
test
CHANGED
File without changes
|
test
CHANGED
@@ -114,6 +114,80 @@
|
|
114
114
|
|
115
115
|
SSLEngine on
|
116
116
|
|
117
|
+
|
118
|
+
|
119
|
+
# SSL Cipher Suite:
|
120
|
+
|
121
|
+
# List the ciphers that the client is permitted to negotiate.
|
122
|
+
|
123
|
+
# See the mod_ssl documentation for a complete list.
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# Uncomment the next line if Apache should not accept SSLv3 connections, to learn more google for "POODLE SSLv3".
|
128
|
+
|
129
|
+
# SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:-SSLv3:+EXP:+eNULL
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
# Comment the next line (and uncomment the line above) if Apache should not accept SSLv3 connections, to learn more google for "POODLE SSLv3".
|
134
|
+
|
135
|
+
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
# Server Certificate:
|
140
|
+
|
141
|
+
# Point SSLCertificateFile at a PEM encoded certificate. If
|
142
|
+
|
143
|
+
# the certificate is encrypted, then you will be prompted for a
|
144
|
+
|
145
|
+
# pass phrase. Note that a kill -HUP will prompt again. Keep
|
146
|
+
|
147
|
+
# in mind that if you have both an RSA and a DSA certificate you
|
148
|
+
|
149
|
+
# can configure both in parallel (to also allow the use of DSA
|
150
|
+
|
151
|
+
# ciphers, etc.)
|
152
|
+
|
153
|
+
SSLCertificateFile "/Applications//MAMP/conf/apache/keys/server.crt"
|
154
|
+
|
155
|
+
#SSLCertificateFile "/Applications/MAMP/conf/apache/server-dsa.crt"
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
# Server Private Key:
|
160
|
+
|
161
|
+
# If the key is not combined with the certificate, use this
|
162
|
+
|
163
|
+
# directive to point at the key file. Keep in mind that if
|
164
|
+
|
165
|
+
# you've both a RSA and a DSA private key you can configure
|
166
|
+
|
167
|
+
# both in parallel (to also allow the use of DSA ciphers, etc.)
|
168
|
+
|
169
|
+
SSLCertificateKeyFile "/Applications/MAMP/conf/apache/keys/server.key"
|
170
|
+
|
171
|
+
#SSLCertificateKeyFile "/Applications/MAMP/conf/apache/server-dsa.key"
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
# Server Certificate Chain:
|
176
|
+
|
177
|
+
# Point SSLCertificateChainFile at a file containing the
|
178
|
+
|
179
|
+
# concatenation of PEM encoded CA certificates which form the
|
180
|
+
|
181
|
+
# certificate chain for the server certificate. Alternatively
|
182
|
+
|
183
|
+
# the referenced file can be the same as SSLCertificateFile
|
184
|
+
|
185
|
+
# when the CA certificates are directly appended to the server
|
186
|
+
|
187
|
+
# certificate for convinience.
|
188
|
+
|
189
|
+
#SSLCertificateChainFile "/Applications/MAMP/conf/apache/server-ca.crt"
|
190
|
+
|
117
191
|
```
|
118
192
|
|
119
193
|
|
4
MAMPをSSL化した際に弄ったhttpd-ssl.confの設定(参考)
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,11 +38,11 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
<追記
|
41
|
+
<追記>
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
■httpd-vhosts.confでの追記内容
|
45
|
+
■(1)httpd-vhosts.confでの追記内容
|
46
46
|
|
47
47
|
|
48
48
|
|
@@ -80,6 +80,46 @@
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
+
|
84
|
+
|
85
|
+
■(2)httpd-ssl.conf(SSL化に設定した箇所)
|
86
|
+
|
87
|
+
※これは不要だとは思いましたが確かにSSLではデフォルトはポート443のようでした。
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
```ここに言語を入力
|
92
|
+
|
93
|
+
<VirtualHost _default_:443>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
# General setup for the virtual host
|
98
|
+
|
99
|
+
DocumentRoot "/Applications/MAMP/htdocs/テストフォルダ01"
|
100
|
+
|
101
|
+
ServerName localhost
|
102
|
+
|
103
|
+
ServerAdmin you@example.com
|
104
|
+
|
105
|
+
ErrorLog "/Applications/MAMP/Library/logs/error_log"
|
106
|
+
|
107
|
+
TransferLog "/Applications/MAMP/Library/logs/access_log"
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
# SSL Engine Switch:
|
112
|
+
|
113
|
+
# Enable/Disable SSL for this virtual host.
|
114
|
+
|
115
|
+
SSLEngine on
|
116
|
+
|
117
|
+
```
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
83
123
|
### 補足情報(FW/ツールのバージョンなど)
|
84
124
|
|
85
125
|
macOS High Sierra(ver10.13.1)
|
3
回答者からのhttpd-vhosts.confの追記コード開示依頼のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,12 +1,20 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
+
最終的にはMACのMAMPで作ったローカル環境をXサーバー上の
|
4
|
+
|
3
|
-
|
5
|
+
WordPress本番環境に移行し、適宜、作成した記事などをローカル環境で
|
6
|
+
|
7
|
+
テストしつつサイトを運営していきたいと考えています。
|
4
8
|
|
5
9
|
|
6
10
|
|
7
11
|
|
8
12
|
|
9
|
-
MAMPのSSL対応化については[参考サイト](https://parashuto.com/rriver/tools/https-localhost-ssl-with-mac-mamp)を見てhttpsに対応したMAMPのサイトhttp**s**://localhost/MAMP/?language=Japaneseに飛べるのでできているのではないかと思います。
|
13
|
+
MAMPのSSL対応化については[参考サイト](https://parashuto.com/rriver/tools/https-localhost-ssl-with-mac-mamp)を見てhttpsに対応したMAMPのサイトhttp**s**://localhost/MAMP/?language=Japaneseに飛べるのでできているのではないかと思います。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
しかし、バーチャルホストで設定したhttps://localhost:●●●(※●=httpd-vhosts.confで宣言したポート番号)で接続すると見れません。単なるlocalhost:●●●で入力した場合はインストールしたWordPressのローカルサイトがブラウザ上で表示はされますが。
|
10
18
|
|
11
19
|
|
12
20
|
|
@@ -26,11 +34,49 @@
|
|
26
34
|
|
27
35
|
|
28
36
|
|
37
|
+
--------------------------------------------------------------------------------
|
29
38
|
|
30
39
|
|
40
|
+
|
31
|
-
|
41
|
+
<追記内容>
|
32
42
|
|
33
43
|
|
44
|
+
|
45
|
+
■httpd-vhosts.confでの追記内容
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
```ここに言語を入力
|
50
|
+
|
51
|
+
NameVirtualHost *:80
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
~中略~
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
#site01用(ポート49152を使用)
|
60
|
+
|
61
|
+
Listen 49152
|
62
|
+
|
63
|
+
<VirtualHost *:49152>
|
64
|
+
|
65
|
+
DocumentRoot "//Applications/MAMP/htdocs/テストフォルダ01"
|
66
|
+
|
67
|
+
<Directory "/Applications/MAMP/htdocs/テストフォルダ01">
|
68
|
+
|
69
|
+
AllowOverride All
|
70
|
+
|
71
|
+
</Directory>
|
72
|
+
|
73
|
+
ErrorLog "logs/site1-error_log"
|
74
|
+
|
75
|
+
CustomLog "logs/site1-access_log" common
|
76
|
+
|
77
|
+
</VirtualHost>
|
78
|
+
|
79
|
+
```
|
34
80
|
|
35
81
|
|
36
82
|
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,9 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
+
|
30
|
+
|
29
|
-
|
31
|
+
初心者のためなかなか質問の仕方が要領を得ず申し訳ありません。どうかよろしくお願い致します。
|
30
32
|
|
31
33
|
|
32
34
|
|
@@ -43,9 +45,3 @@
|
|
43
45
|
Php(Apache)ver7.3.1
|
44
46
|
|
45
47
|
MySQL ver5.7.25
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
ここにより詳細な情報を記載してください。
|
1
誤字の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
MAMPのSSL対応化については[参考サイト](https://parashuto.com/rriver/tools/https-localhost-ssl-with-mac-mamp)を見てhttpsに対応したMAMPのサイトhttp**s**://localhost/MAMP/?language=Japaneseに飛べるのでできているのではないかと思います。しかし、バーチャルホストで設定したhttps://localhost:●●●(※●=httpd-vhosts.confで宣言したポート番号)で接続すると見れません。単なるlocalhost:●●●で
|
9
|
+
MAMPのSSL対応化については[参考サイト](https://parashuto.com/rriver/tools/https-localhost-ssl-with-mac-mamp)を見てhttpsに対応したMAMPのサイトhttp**s**://localhost/MAMP/?language=Japaneseに飛べるのでできているのではないかと思います。しかし、バーチャルホストで設定したhttps://localhost:●●●(※●=httpd-vhosts.confで宣言したポート番号)で接続すると見れません。単なるlocalhost:●●●で入力した場合はインストールしたWordPressのローカルサイトがブラウザ上で表示はされますが。
|
10
10
|
|
11
11
|
|
12
12
|
|