mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 04:48:00 +03:00
feat: error_page as subtable
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
name = "serv1"
|
||||
host = "127.0.0.1"
|
||||
port = 8080
|
||||
error_page = "error.html"
|
||||
body_size_limit = 10
|
||||
[server.error_page]
|
||||
404 = "error_404.html"
|
||||
[[server.location]]
|
||||
location = "/"
|
||||
root = "/var/www/html/jopa.html"
|
||||
@@ -22,8 +23,12 @@
|
||||
name = "2222"
|
||||
host = "10.0.0.1"
|
||||
port = 8081
|
||||
error_page = "error2.html"
|
||||
body_size_limit = 10
|
||||
[server.error_page]
|
||||
404 = "error_404.html"
|
||||
405 = "error_405.html"
|
||||
406 = "error_406.html"
|
||||
407 = "error_407.html"
|
||||
[[server.location]]
|
||||
location = "/root2/"
|
||||
root = "/var/www/html/jopa.html"
|
||||
|
||||
Reference in New Issue
Block a user