File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,13 +86,15 @@ localhost {
8686
8787``` caddyfile
8888app.example.com {
89+ root /path/to/app/public
8990 php_server {
90- root /path/to/app/public
91+ root /path/to/app/public # 允许更好的缓存
9192 worker index.php <num>
9293 }
9394}
9495
9596other.example.com {
97+ root /path/to/other/public
9698 php_server {
9799 root /path/to/other/public
98100 worker index.php <num>
Original file line number Diff line number Diff line change @@ -95,13 +95,15 @@ You can also define multiple workers if you serve multiple apps on the same serv
9595
9696``` caddyfile
9797app.example.com {
98+ root /path/to/app/public
9899 php_server {
99- root /path/to/app/public
100+ root /path/to/app/public # allows for better caching
100101 worker index.php <num>
101102 }
102103}
103104
104105other.example.com {
106+ root /path/to/other/public
105107 php_server {
106108 root /path/to/other/public
107109 worker index.php <num>
Original file line number Diff line number Diff line change @@ -94,13 +94,15 @@ Vous pouvez aussi définir plusieurs workers si vous servez plusieurs applicatio
9494
9595``` caddyfile
9696app.example.com {
97+ root /path/to/app/public
9798 php_server {
98- root /path/to/app/public
99+ root /path/to/app/public # permet une meilleure mise en cache
99100 worker index.php <num>
100101 }
101102}
102103
103104other.example.com {
105+ root /path/to/other/public
104106 php_server {
105107 root /path/to/other/public
106108 worker index.php <num>
Original file line number Diff line number Diff line change @@ -89,13 +89,15 @@ localhost {
8989
9090``` caddyfile
9191app.example.com {
92+ root /path/to/app/public
9293 php_server {
93- root /path/to/app/public
94+ root /path/to/app/public # позволяет лучше кэшировать
9495 worker index.php <num>
9596 }
9697}
9798
9899other.example.com {
100+ root /path/to/other/public
99101 php_server {
100102 root /path/to/other/public
101103 worker index.php <num>
Original file line number Diff line number Diff line change @@ -88,13 +88,15 @@ Aynı sunucuda birden fazla uygulamaya hizmet veriyorsanız birden fazla işçi
8888
8989``` caddyfile
9090app.example.com {
91+ root /path/to/app/public
9192 php_server {
92- root /path/to/app/public
93+ root /path/to/app/public # daha iyi önbelleğe almayı sağlar
9394 worker index.php <num>
9495 }
9596}
9697
9798other.example.com {
99+ root /path/to/other/public
98100 php_server {
99101 root /path/to/other/public
100102 worker index.php <num>
You can’t perform that action at this time.
0 commit comments