質問編集履歴
4
変更後
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,7 +154,7 @@
|
|
154
154
|
|
155
155
|
ProxyPassReverse / http://domain:5000
|
156
156
|
|
157
|
-
ProxyPassReverseCookieDomain IP:5000
|
157
|
+
ProxyPassReverseCookieDomain IP:5000 domain
|
158
158
|
|
159
159
|
|
160
160
|
|
3
変更後
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
Apache/2.4.18 (Ubuntu) Server at
|
31
|
+
Apache/2.4.18 (Ubuntu) Server at domain Port 443
|
32
32
|
|
33
33
|
```
|
34
34
|
|
2
a
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
独自ドメインでサイトが開けません。
|
1
|
+
独自ドメインでサイトが開けません。a
|
test
CHANGED
@@ -100,9 +100,9 @@
|
|
100
100
|
|
101
101
|
DocumentRoot /var/www/html
|
102
102
|
|
103
|
-
ProxyPass / http://
|
103
|
+
ProxyPass / http://IP:5000/
|
104
104
|
|
105
|
-
ProxyPassReverse / http://
|
105
|
+
ProxyPassReverse / http://IP:5000/
|
106
106
|
|
107
107
|
|
108
108
|
|
@@ -150,11 +150,11 @@
|
|
150
150
|
|
151
151
|
DocumentRoot /var/www/html
|
152
152
|
|
153
|
-
ProxyPass / http://
|
153
|
+
ProxyPass / http://domain:5000
|
154
154
|
|
155
|
-
ProxyPassReverse / http://
|
155
|
+
ProxyPassReverse / http://domain:5000
|
156
156
|
|
157
|
-
ProxyPassReverseCookieDomain
|
157
|
+
ProxyPassReverseCookieDomain IP:5000 0channel.com
|
158
158
|
|
159
159
|
|
160
160
|
|
1
関係しているファイルを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -71,3 +71,97 @@
|
|
71
71
|
|
72
72
|
|
73
73
|
```
|
74
|
+
|
75
|
+
/etc/apache2/sites-enabled/000-default.confないです
|
76
|
+
|
77
|
+
```/etc/apache2/sites-enabled/000-default.conf
|
78
|
+
|
79
|
+
<VirtualHost *:80>
|
80
|
+
|
81
|
+
# The ServerName directive sets the request scheme, hostname and port t$
|
82
|
+
|
83
|
+
# the server uses to identify itself. This is used when creating
|
84
|
+
|
85
|
+
# redirection URLs. In the context of virtual hosts, the ServerName
|
86
|
+
|
87
|
+
# specifies what hostname must appear in the request's Host: header to
|
88
|
+
|
89
|
+
# match this virtual host. For the default virtual host (this file) this
|
90
|
+
|
91
|
+
# value is not decisive as it is used as a last resort host regardless.
|
92
|
+
|
93
|
+
# However, you must set it for any further virtual host explicitly.
|
94
|
+
|
95
|
+
#ServerName www.example.com
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
ServerAdmin webmaster@localhost
|
100
|
+
|
101
|
+
DocumentRoot /var/www/html
|
102
|
+
|
103
|
+
ProxyPass / http://139.59.3.253:5000/
|
104
|
+
|
105
|
+
ProxyPassReverse / http://139.59.3.253:5000/
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
112
|
+
|
113
|
+
# error, crit, alert, emerg.
|
114
|
+
|
115
|
+
# It is also possible to configure the loglevel for particular
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
```
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
/etc/apache2/sites-enabled/000-default-le-ssl.conf内は
|
124
|
+
|
125
|
+
```000-default-le-ssl.conf
|
126
|
+
|
127
|
+
<IfModule mod_ssl.c>
|
128
|
+
|
129
|
+
<VirtualHost *:443>
|
130
|
+
|
131
|
+
# The ServerName directive sets the request scheme, hostname and port t$
|
132
|
+
|
133
|
+
# the server uses to identify itself. This is used when creating
|
134
|
+
|
135
|
+
# redirection URLs. In the context of virtual hosts, the ServerName
|
136
|
+
|
137
|
+
# specifies what hostname must appear in the request's Host: header to
|
138
|
+
|
139
|
+
# match this virtual host. For the default virtual host (this file) this
|
140
|
+
|
141
|
+
# value is not decisive as it is used as a last resort host regardless.
|
142
|
+
|
143
|
+
# However, you must set it for any further virtual host explicitly.
|
144
|
+
|
145
|
+
#ServerName www.example.com
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
ServerAdmin webmaster@localhost
|
150
|
+
|
151
|
+
DocumentRoot /var/www/html
|
152
|
+
|
153
|
+
ProxyPass / http://0channel.com:5000
|
154
|
+
|
155
|
+
ProxyPassReverse / http://0channel.com:5000
|
156
|
+
|
157
|
+
ProxyPassReverseCookieDomain 139.59.3.253:5000 0channel.com
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
162
|
+
|
163
|
+
# error, crit, alert, emerg.
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
```
|