質問編集履歴
2
confファイルを追記。
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,6 +22,15 @@
|
|
22
22
|
# root /var/www/html;
|
23
23
|
# index fuga_index.php;
|
24
24
|
# }
|
25
|
+
|
26
|
+
location ~ .php$ {
|
27
|
+
root /var/www/html/hoge;
|
28
|
+
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
|
29
|
+
fastcgi_index login.php;
|
30
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
31
|
+
include fastcgi_params;
|
32
|
+
fastcgi_read_timeout 1200;
|
33
|
+
}
|
25
34
|
|
26
35
|
}
|
27
36
|
```
|
1
ディレクトリ構造などについて追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,4 +24,19 @@
|
|
24
24
|
# }
|
25
25
|
|
26
26
|
}
|
27
|
-
```
|
27
|
+
```
|
28
|
+
|
29
|
+
##[追記]ディレクトリ構造および表示ファイル
|
30
|
+
ディレクトリ構造は下記の通りとなっており、アクセスするアドレスとその際に表示したいファイルは下記となっております。
|
31
|
+
|
32
|
+
```dir
|
33
|
+
/var/www/html
|
34
|
+
|- /hoge
|
35
|
+
|- /index.php
|
36
|
+
|
37
|
+
|- /fuga
|
38
|
+
|- /fuga_index.php
|
39
|
+
```
|
40
|
+
|
41
|
+
アクセス先 : https://aaa.hoge.com/fuga/fuga_index.php
|
42
|
+
表示したいファイル : /var/www/html/fuga/fuga_index.php
|