Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

IP.Board rewrite for ibparcade

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>