I have a question about where to include the rewrite rules and the actual syntax of the location block.
First, do I place the location block in the server section of Nginx config for the Dolphin website? Second, do I just use location {}?
Example:
server {
listen 80;
server_name www.dolphin_site.net dolphin_site.net;
root /var/www/public_html/dolphin_site;
# serve static files directly
location ~* ^.+(templates|flash|media|plugins)/.+.(jpg|jpeg|gif|css|png|js|ico)$ {
access_log off;
expires 30d;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /.ht {
deny all;
}
location {
rewrite rules here
}
Is that example correct? My plan is to include the rewrites from a config file. So for Nginx:
location {
include /path to rewrite file/dolphin_rewrite.conf
}
Would that be correct?
I am so new to Nginx but excited to start working with it as I hear such good things concerning Dolphin performance on Nginx.