RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
getting_started:20_install_ubuntu_nginx [2020/05/03 20:16]
admin [Modify Nginx]
getting_started:20_install_ubuntu_nginx [2020/05/03 20:27] (current)
admin [Performance tune Nginx]
Line 211: Line 211:
   * Add the following inside the server section:   * Add the following inside the server section:
 <code bash> <code bash>
-location ~ ^/​cake2/​.+\.(jpg|jpeg|gif|png|ico|js|css)$ { 
-    rewrite ^/​cake2/​rd_cake/​webroot/​(.*)$ /​cake2/​rd_cake/​webroot/​$1 break; 
-    rewrite ^/​cake2/​rd_cake/​(.*)$ /​cake2/​rd_cake/​webroot/​$1 break; 
-    access_log off; 
-    expires max; 
-    add_header Cache-Control public; 
-} 
- 
 location ~ ^/​cake3/​.+\.(jpg|jpeg|gif|png|ico|js|css)$ { location ~ ^/​cake3/​.+\.(jpg|jpeg|gif|png|ico|js|css)$ {
     rewrite ^/​cake3/​rd_cake/​webroot/​(.*)$ /​cake3/​rd_cake/​webroot/​$1 break;     rewrite ^/​cake3/​rd_cake/​webroot/​(.*)$ /​cake3/​rd_cake/​webroot/​$1 break;