質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,3 +29,75 @@
|
|
29
29
|
|
30
30
|
|
31
31
|
404ページを表示されたいのですがどうすれば良いでしょうか?
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
追記
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
参考までに、httpd.confと.htaccessの記述内容を下記します
|
40
|
+
|
41
|
+
なお、.htaccessの最後はちゃんと改行しています
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
/etc/httpd/conf/httpd.conf
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
<VirtualHost *:80>
|
50
|
+
|
51
|
+
ServerName 192.168.1.1
|
52
|
+
|
53
|
+
DocumentRoot /var/www/html
|
54
|
+
|
55
|
+
<Directory /var/www/html>
|
56
|
+
|
57
|
+
Options ExecCGI Includes FollowSymLinks
|
58
|
+
|
59
|
+
AllowOverride Options AuthConfig Limit FileInfo
|
60
|
+
|
61
|
+
Order allow,deny
|
62
|
+
|
63
|
+
Allow from all
|
64
|
+
|
65
|
+
</Directory>
|
66
|
+
|
67
|
+
ErrorLog /var/www/logs/error_log
|
68
|
+
|
69
|
+
CustomLog /var/www/logs/access_log combined env=!nolog
|
70
|
+
|
71
|
+
ErrorDocument 404 /error/404.html
|
72
|
+
|
73
|
+
RewriteEngine on
|
74
|
+
|
75
|
+
RewriteOptions inherit
|
76
|
+
|
77
|
+
</VirtualHost>
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
/var/www/html/.htaccess
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
Options +Includes
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
AddHandler server-parsed html
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
AddType image/svg+xml .svg .svgz
|
96
|
+
|
97
|
+
AddEncoding gzip .svgz
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
ErrorDocument 404 error/404.html
|
102
|
+
|
103
|
+
```
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|