Nginx & Dolphin rewrite rules.

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.

Geeks, making the world a better place
Quote · 13 Dec 2012

I think you should install ispconfig on your server that makes things lot easier to manage. You have to reinstall everything to get ispconfig working.

so much to do....
Quote · 13 Dec 2012

At this time I am not going to redo the server box; I had it pulled to get that albatross known as PLESK off and since they returned a bare box I decided to go with Nginx and php-fpm.  I am using webmin to help manage things and I can edit config files using the file manager in webmin with ease (not that I can not use the vi editor but why should I?).

Now, about my original question concerning the Dolphin rewrites....?

Geeks, making the world a better place
Quote · 13 Dec 2012

The answer is no, because I am not specifying the location.  So, for the rewrite location block is this correct?

location / {

include dolphin_rewrites.conf;

}

Geeks, making the world a better place
Quote · 13 Dec 2012

 Yes, it should be correct if dolphin_rewrites.conf file is in the same folder and included file contains rewrite rules.

The answer is no, because I am not specifying the location.  So, for the rewrite location block is this correct?

location / {

include dolphin_rewrites.conf;

}

 

Rules → http://www.boonex.com/terms
Quote · 16 Dec 2012

 Where to put rewrite rules in ispconfig3?

I think you should install ispconfig on your server that makes things lot easier to manage. You have to reinstall everything to get ispconfig working.

 

Umar Haroon
Quote · 12 Jun 2015

 

 Where to put rewrite rules in ispconfig3?

 Select the options tab for your webdomain and copy and past the rules to the nginx Directives block.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 12 Jun 2015

 What if the website is not live? i haven't connected the server to the domain. I am just testing offline. So how could i enable the rewrite?

 

 Where to put rewrite rules in ispconfig3?

 Select the options tab for your webdomain and copy and past the rules to the nginx Directives block.

 

Umar Haroon
Quote · 12 Jun 2015

You can put the file containing the rewrite rules any place you desired.  If you are having trouble doing an include, just copy and paste the rules directly into the server block for your website.

Geeks, making the world a better place
Quote · 12 Jun 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.