Welcome! Log In Create A New Profile

Advanced

IP.Board rewrite for ibparcade

Posted by winniethepooh 
IP.Board rewrite for ibparcade
March 22, 2013 01:40PM
Hello,
I'm using IP.Board 3.x.x and am trying to figure out what I need to add to my rewrite rules to get ibparcade( http://www.ibparcade.com/) working with FURLs, as IPS calls them.

The directory structure for the arcade looks like this:
/arcade/catimages
/arcade/gamedata/
/arcade/images/
/arcade/modules/
/arcade/tar/
/arcade/*.swf files


The arcade page loads fine but I get a 404 on when clicking play game and finding the .swf files. Error console says:
Failed to load resource: the server responded with a status of 404 (Not Found) http://forums.domain.net/arcade/*.swf

I'm not sure what the problem is because the .swf file is actually at /arcade/*.swf and that is the path it is getting a 404 on.

Below is my nginx conf segment for the forums:
server {
listen 80;
server_name forums.domain.net www.forums.domain.net;
root /path/forums;
index index.php index.html index.htm;


location / {
try_files $uri $uri/ /index.php?$uri&$args;
rewrite ^ /index.php? last;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /path/default;
}

location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
access_log off;
}

location ~ \.php$ {
root /path/forums;
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}

Any help on this issue, or any advice in general about this config and IP.Board would be greatly appreciated.
Re: IP.Board rewrite for ibparcade
March 22, 2013 10:56PM
derp. Fixed.

Added swf to location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$

If there are any other recommendation though, it would be appreciated.



Edited 1 time(s). Last edit at 03/22/2013 10:57PM by winniethepooh.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready