-
Book Overview & Buying
-
Table Of Contents
Mastering NGINX - Second Edition
By :
When creating new rules from scratch, just as with any configuration block, plan out exactly what needs to be done. Some questions to ask yourself are as follows:
In examining the layout of your website or application, it should be clear what patterns you have in your URLs. If there is more than one way to reach a certain page, create a rewrite rule to send a permanent redirect back to the client. Using this knowledge, you can construct a canonical representation of your website or application. This not only makes for cleaner URLs, but also helps your site to be found more easily.
For example, if you have a home controller to handle default traffic, but can also reach that controller through an...
Change the font size
Change margin width
Change background colour