質問編集履歴

5

初心者マークの追加

2018/07/19 01:12

投稿

sekkati
sekkati

スコア24

test CHANGED
File without changes
test CHANGED
File without changes

4

httpd.confの追記

2018/07/19 01:11

投稿

sekkati
sekkati

スコア24

test CHANGED
File without changes
test CHANGED
@@ -136,6 +136,36 @@
136
136
 
137
137
 
138
138
 
139
+ /etc/httpd/conf/httpd.confは下記のようになっています。(名前等変えています) & (:8090だけ抜粋)
140
+
141
+
142
+
143
+ ```apache
144
+
145
+ <VirtualHost *:8090>
146
+
147
+ ServerName localhost
148
+
149
+ DocumentRoot "/opt/abcd/www.defg"
150
+
151
+ ErrorLog "logs/error_abcd.log"
152
+
153
+ CustomLog "logs/com-accsess.log" common
154
+
155
+ <Directory "/opt/abcd/www.defg">
156
+
157
+ Allow Override All
158
+
159
+ Allow from all
160
+
161
+ </Directory>
162
+
163
+ </VirtualHost>
164
+
165
+ ```
166
+
167
+
168
+
139
169
  ### 補足情報(FW/ツールのバージョンなど)
140
170
 
141
171
 

3

前提の追記⑥

2018/07/18 05:40

投稿

sekkati
sekkati

スコア24

test CHANGED
File without changes
test CHANGED
@@ -25,6 +25,8 @@
25
25
  mod_ssl.x86_64 1:2.2.15-69.el6.cento
26
26
 
27
27
  ```
28
+
29
+ ⑥apache側のアプリケーションには特定のネット(ポケットwi-fi)からしかアクセスできないみたいです。
28
30
 
29
31
 
30
32
 

2

捕捉情報の追記

2018/07/18 05:19

投稿

sekkati
sekkati

スコア24

test CHANGED
File without changes
test CHANGED
@@ -170,4 +170,18 @@
170
170
 
171
171
  Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
172
172
 
173
+
174
+
175
+ $ php-fpm -v
176
+
177
+ PHP 5.6.36 (fpm-fcgi) (built: Apr 25 2018 10:12:10)
178
+
179
+ Copyright (c) 1997-2016 The PHP Group
180
+
181
+ Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
182
+
173
183
  ```
184
+
185
+
186
+
187
+ ※上記のphpとphp-fpmの具体的な違いもわかっていないです。

1

default.confの追記

2018/07/18 04:50

投稿

sekkati
sekkati

スコア24

test CHANGED
File without changes
test CHANGED
@@ -50,11 +50,23 @@
50
50
 
51
51
  ```nginx
52
52
 
53
+ ### httpでアクセスしてきた場合はhttpsにリダイレクト
54
+
53
55
  server {
54
56
 
55
- # listen 80;
57
+ listen 80;
58
+
59
+ server_name localhost;
60
+
61
+ return 301 https://$host$request_uri;
62
+
63
+ }
56
64
 
57
65
 
66
+
67
+ ### https設定
68
+
69
+ server {
58
70
 
59
71
  ## 追加7/13
60
72
 
@@ -78,17 +90,23 @@
78
90
 
79
91
 
80
92
 
81
- #charset koi8-r;
93
+ ## 編集7/18
82
-
83
- #access_log /var/log/nginx/host.access.log main;
84
-
85
-
86
94
 
87
95
  location / {
88
96
 
89
- root /usr/share/nginx/html;
97
+ proxy_pass http://192.168.100.110:8090;
90
98
 
99
+ # proxy_redirect off;
100
+
101
+ # proxy_set_header Host $host;
102
+
103
+ # proxy_set_header X-Real-IP $remote_addr;
104
+
91
- index index.html index.htm;
105
+ # proxy_set_header X-Forwarded-Host $host;
106
+
107
+ # proxy_set_header X-Forwarded-Server $host;
108
+
109
+ # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
92
110
 
93
111
  }
94
112
 
@@ -109,52 +127,6 @@
109
127
  root /usr/share/nginx/html;
110
128
 
111
129
  }
112
-
113
-
114
-
115
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
116
-
117
- #
118
-
119
- #location ~ .php$ {
120
-
121
- # proxy_pass http://127.0.0.1;
122
-
123
- #}
124
-
125
-
126
-
127
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
128
-
129
- #
130
-
131
- #location ~ .php$ {
132
-
133
- # root html;
134
-
135
- # fastcgi_pass 127.0.0.1:9000;
136
-
137
- # fastcgi_index index.php;
138
-
139
- # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
140
-
141
- # include fastcgi_params;
142
-
143
- #}
144
-
145
-
146
-
147
- # deny access to .htaccess files, if Apache's document root
148
-
149
- # concurs with nginx's one
150
-
151
- #
152
-
153
- #location ~ /.ht {
154
-
155
- # deny all;
156
-
157
- #}
158
130
 
159
131
  }
160
132