ShaneMcC / MoneyTracker

Application for tracking money expenditures from bank accounts.
MIT License
7 stars 1 forks source link

Nginx configuration #8

Open slifin opened 8 years ago

slifin commented 8 years ago

I'm trying to get this project running using nginx but my nginx rule writing skills are no match for these particular rules:

# Allowed Files
RewriteRule ^(bootstrap|templates|images|js|bankimage)/.*$ - [L]
RewriteRule ^(3rdparty)/.*(js|css)$ - [L]
RewriteRule ^(debug|test|index).php$ - [L]

# Everything Else
RewriteRule ^([^/]+)/(.+)$ index.php?p=$1&s=$2 [L]
RewriteRule ^(.*)/$ index.php?p=$1 [L]
RewriteRule ^(.*)$ index.php?p=$1 [L]

Is this something that could be abstracted away from the web server's responsibility easily? Or does any one have the necessary skills to write an nginx rule set for this?