Nginx server block for Dolphin 7.3.5

I am already working for 14 days

to a successful Nginx server block for Dolphin 7.3.5

my nginx joomla server blocks work flawlessly.

Only with Dolphin I have problems.

Have reserve Proxy Nginx with Apache

My websites are on Plesk with Ubunto.

So what's up with Dolphin not:

https: //*********.com/index.php

is executable for Nginx.

https: //*********.com/

is not executable for Nginx

Avartar

photos

and all third-party pages are empty pages.

Nginx indicates: 403 Forbidden

 

I have the Dolphin rewrite correctly in the server block.

/sites-available/****************.conf

 

Google Speed has the page 90/98 Speed.

So great

I can only do it with https: //***********index.php

let test.

 

my question:

Is there a standard server block for Dolphin?

Since the Dolphin start page of Nginx

is not executed

it will be a server block problem.

Quote · 20 Apr 2019

Why not just run Nginx as the webserver and drop the proxy?  I have been running Nginx as the only webserver with Dolphin without any issues with the server block.  The issue is not Dolphin but your server block.  Post the server block here so we can examine it.  Also, what do you have in the /inc/header.inc.php for the server URL?

Geeks, making the world a better place
Quote · 20 Apr 2019

Please could you clarify what you mean by "server block", also did you examine Nginx server error log when the error occurred ?

Rules → http://www.boonex.com/terms
Quote · 21 Apr 2019

 

Warum nicht einfach Nginx als Webserver ausführen und den Proxy löschen? Ich habe Nginx als guten Webserver mit Dolphin ohne Probleme mit dem Serverblock ausgeführt. Das Problem ist nicht Dolphin, sondern Ihr Serverblock. Poste den Serverblock hier, damit wir ihn untersuchen können. Was haben Sie in der Datei /inc/header.inc.php für die Server-URL?

 

Hello geek_girl

The server block is located at etc / nginx / sites-available / ********. Conf

Nginx server blocks are (virtual hosts)

I have a server block for every website

Here is the server block of my Dolphin 7.3.5

Nginx is a reserve proxy server

On Ubuntu / Plesk

geek_girl

/inc/header.inc.php for the server URL

You mean;

$ Dir ['root']

that's in the server block

 

 

SERVERBLOCK DOLPHIN 7.3.5   

 

 

server {

    server_name www.********.com ********.com;

    listen 80;

    root /var/www/vhosts/******.com/httpsdocs/*******/;

    access_log /var/log/nginx/********.com-access.log;

    error_log /var/log/nginx/********.com-error.log;

    index index.php;

 

    location / {

        try_files  $uri $uri/ /index.php?$args;

    }

 

    location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {

        access_log off;

        expires max;

    }

 

    location ~ \.php$ {

        try_files $uri = 404;

        fastcgi_split_path_info ^(.+\.php)(/.+)$;

        fastcgi_pass 127.0.0.1:9000;

        fastcgi_index index.php;

        include /etc/nginx/fastcgi_params;

        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    }

 

    location ~ /\.ht {

        deny all;

    }

 

}

 

Dolphin 7.3.5 rewrite rules


 

      # blogs rewrite

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs[/]{0,1}$"   /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php last;        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/all[/]{0,1}$"  /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=all last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/all/([0-9]+)/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/top[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=top_blogs last;        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/top/([0-9]+)/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=top_blogs&page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/top_posts[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=top_posts last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/top_posts/([0-9]+)/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=top_posts&page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/tag/([^/.]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/tag[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey= last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/posts/([^/.]+)/tag/([^/.]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$2&blogOwnerName=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/posts/([^/.]+)/category/([^/.]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_blog&blogOwnerName=$1&categoryUri=$2 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/entry/([^/.]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_post&postUri=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/entry[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_post&postUri= last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/posts/([^/.]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_blog&blogOwnerName=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/posts[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_blog&blogOwnerName= last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/posts/([^/.]+)/([0-9]+)/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_blog&blogOwnerName=$1&page=$3&per_page=$2 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/posts/([^/.]+)/category/([^/.]+)/([0-9]+)/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_blog&blogOwnerName=$1&categoryUri=$2&page=$4&per_page=$3 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/home[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=home last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/all_posts[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=all_posts last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/all_posts/([0-9]+)/([0-9]+)/{0,1}$"   /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=all_posts&page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/popular_posts[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=popular_posts last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/popular_posts/([0-9]+)/([0-9]+)/{0,1}$"   /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=popular_posts&page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/featured_posts[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=featured_posts last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/tags[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=tags last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/show_calendar[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_calendar last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/my_page[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=my_page&mode=main last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/my_page/add[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=my_page&mode=add last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/my_page/manage[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=my_page&mode=manage last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/my_page/pending[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=my_page&mode=pending last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/my_page/edit/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=edit_post&EditPostID=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/member_posts/([0-9]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=show_member_blog&ownerID=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/blogs/category/([^/.]+)[/]{0,1}$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/blogs/blogs.php?action=category&uri=$1 last;

 

        # ads rewrite

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads(/|)$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?Browse=1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/add[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=add last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/edit/([0-9]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/edit/([0-9]+)/dimg/([0-9]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1&dimg=$2 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/manage[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=manage last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/pending[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=pending last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/expired[/]*$"  /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=expired last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/my_page/disapproved[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=my_page&mode=disapproved last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/cat/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?catUri=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/all/cat/([0-9]+)/([0-9]+)/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?catUri=$3&page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/subcat/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?scatUri=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/all/subcat/([0-9]+)/([0-9]+)/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?scatUri=$3&page=$2&per_page=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/entry/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?entryUri=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/tag/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds_tags.php?tag=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/calendar[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=show_calendar last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/categories[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=show_categories last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/tags[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=tags last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/all_ads[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=show_all_ads last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/top_ads[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=show_top_rated last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/popular_ads[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=show_popular last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/featured_ads[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?action=show_featured last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/ads/member_ads/([0-9]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/ads/classifieds.php?UsersOtherListing=1&IDProfile=$1 last;

  # search by tag rewrite

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/search/tag/([^/.]+)[/]*$" /var/www/vhosts/**********.com/httpsdocs/********/search.php?Tags=$1 last;

 

        # browse members rewrite

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/browse/([^/.]+)/([^/.]+)/([^/.]+)$" /var/www/vhosts/**********.com/httpsdocs/********/browse.php?sex=$1&age=$2&country=$3 last;

 

        # forum rewrite

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/groups/(.*)$" /var/www/vhosts/**********.com/httpsdocs/********/forum/$1?orca_integration=groups;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/events/(.*)$" /var/www/vhosts/**********.com/httpsdocs/********/forum/$1?orca_integration=events;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/store/(.*)$" /var/www/vhosts/**********.com/httpsdocs/********/forum/$1?orca_integration=store;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/(.*)$" /var/www/vhosts/**********.com/httpsdocs/********/forum/$1;

 

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/group/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=goto&cat_id=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/forum/(.+)-([0-9]+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=goto&forum_id=$1&start=$2 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/forum/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=goto&forum_id=$1&start=0 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/topic/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=goto&topic_id=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/user/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=goto&user=$1 last;

 

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/rss/forum/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=rss_forum&forum=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/rss/topic/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=rss_topic&topic=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/rss/user/(.+)\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=rss_user&user=$1 last;

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/rss/all\.htm$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/index.php?action=rss_all&sort= last;

 

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/forum/(.*)$" /var/www/vhosts/**********.com/httpsdocs/********/modules/boonex/forum/$1 last;

 

        # pages rewrite

        rewrite "^/var/www/vhosts/**********.com/httpsdocs/********/page/(.*)$" /var/www/vhosts/**********.com/httpsdocs/********/viewPage.php?ID=$1 last;

 

        # profile rewrite

        if (!-e $request_filename ) {

            rewrite  ^/var/www/vhosts/**********.com/httpsdocs/********/([^/]+)$  /var/www/vhosts/**********.com/httpsdocs/********/profile.php?ID=$1  last;

            break;

 

 # serve static files directly

    location ~* ^\/httpsdocs/jhv65pdyx.+(templates|flash|media|plugins)\/.+\.(jpg|jpeg|gif|css|png|js|ico)$ {

        access_log        off;

        expires           30d;

    }

 

 

Quote · 21 Apr 2019

Are you using PHP-FPM?  If so, check your pools to make sure the correct user and group is there.

Geeks, making the world a better place
Quote · 22 Apr 2019

yes I am using PHP FPM.

what are pools?

and where can I check these pools?

Quote · 23 Apr 2019

https://gist.github.com/fyrebase/62262b1ff33a6aaf5a54

https://serversforhackers.com/c/php-fpm-process-management

Geeks, making the world a better place
Quote · 23 Apr 2019
 
 
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.