futuresight / futurebb

The forum system by FutureSight Technologies. A live sample can be seen at http://futuresight.org/forums
http://futurebb.futuresight.org
2 stars 2 forks source link

nginx configuration #161

Open iggyvolz opened 8 years ago

iggyvolz commented 8 years ago

I was able to do nginx configuration really simply. In essence, here's the proper config: server { listen 80; listen 443 ssl; #If you're using HTTPS server_name ; root ; location /forums/static { rewrite ^/forums/static/(.*?)$ /forums/static/$1 break; } location /forums/ { fastcgi_pass 127.0.0.1:; fastcgi_param SCRIPT_FILENAME /forums/dispatcher.php; include fastcgi_params; } }

Works great and I haven't found any problems with it with a userbase of 5 active users.

jacob-g commented 8 years ago

Thank you for this. I am going to include this in the FutureBB 1.4 installer, as it is an improvement over the older code.

jacob-g commented 8 years ago

Looks like it ignores PHP files, so I'll have to fix that.

iggyvolz commented 8 years ago

Once this is finished, the error message from installation should be removed:

You are not running Apache. Please do not continue setting up this software unless you know what you are doing and are familiar with how to operate your server software. Specifically, you need to be knowledgeable about the available URL rewrite tools.

iggyvolz commented 8 years ago

Also - not sure if this is just an issue with nginx or this is apache too, but the rewrite stops at a dot. For example, I installed at 127.0.0.1/futurebb-1.4B and this showed up:

location /futurebb-1/static {
    rewrite ^/futurebb-1/static/(.*?)$ /futurebb-1/static/$1 break;
}
location /futurebb-1/ {
    rewrite ^(.*)$ /futurebb-1/dispatcher.php;
}
jacob-g commented 8 years ago

Weird. Are you sure you set the basepath right? That's what it goes by.

Also, I think it is worth keeping the nginx warning, as it is still more complicated than just uploading a file as is the case for PHP.

jacob-g commented 8 years ago

I really need a way that doesn't require the user knowing any of the PHP information (a paste-and-go sort of thing). I haven't really had any success yet, though.