Commit 8b83537
authored
remove: redundant fastcgi intercept error directives from site config stubs (#39)
The `fastcgi_intercept_errors` and `error_page` directives that were
added in #26 are redundant in the site configs, they are not used by
nginx. It is only the main `valet.conf` that nginx uses these directives
from, all others are ignored in sites configs. Also the
`proxy_intercept_errors` directive is not needed either since the
`fastcgi_intercept_errors` directive will also do the same job for
proxied sites.
* Removed `proxy_intercept_errors on;` and `fastcgi_intercept_errors
on;` directives from all proxy and fastcgi locations in the nginx stubs:
`proxy.valet.conf`, `secure.proxy.valet.conf`, `secure.valet.conf`, and
`unsecure.valet.conf`.
* Deleted the custom error page configuration for HTTP 500, 502, 503,
and 504 errors, including the internal `/500.html` location and
references to `VALET_ERROR_TEMPLATE_PATH`, from all affected
configuration stubs.4 files changed
Lines changed: 0 additions & 63 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 59 | | |
71 | 60 | | |
72 | 61 | | |
| |||
95 | 84 | | |
96 | 85 | | |
97 | 86 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 87 | | |
102 | 88 | | |
103 | 89 | | |
104 | 90 | | |
105 | 91 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 92 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 64 | | |
75 | 65 | | |
76 | 66 | | |
| |||
109 | 99 | | |
110 | 100 | | |
111 | 101 | | |
112 | | - | |
113 | | - | |
114 | 102 | | |
115 | 103 | | |
116 | 104 | | |
117 | 105 | | |
118 | 106 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 107 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 54 | | |
0 commit comments