Jump to content

IPB, IPC and nginx rules

Recommended Posts

Hi guys,

We have our main site as small php file located in root folder.

IPB is located in /forum/ and all other aplications like gallery and so on has a link /forum/gallery/

Just now we are fighting with setting up IPC in main root, and rest like it was.

How to set up nginx for handling it?

we have two config.

 location / {
                root   /aaaa/public_html;
                index  index.php index.html index.htm;
#               auth_basic            "Restricted";
#               auth_basic_user_file  /aaaa/public_html/.htpasswd;

                rewrite_log on;

                if (!-e $request_filename) {
                rewrite ^/bbb/(.*)$ /bbb/index.php?q=$1 last;
                #rewrite . /forum/index.php last;
                rewrite . /index.php last;


and teh second cofig with uncomented line: rewrite . /forum/index.php last; but commented next one.

In 1. config IPC is working fine, but nothing deeper that /forum/ is working. /forum/gallery/ is broken, /forum/topic/ is broken and so on.

In 2. config IPC is not working, but forum and other aps are working.

How to fix it?

Best regards


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...