thedarkwizard
Member
We don't use apache so we'd need the syntax that this program uses to put in our nginx config.
You can look in .htaccess file for the rewrite rules
server {
server_name domain.tld; ## your domain
root /www/full/path/to/VL; ## <-- Your only path reference. No ending slash
location / {
# This is cool because no php is touched for static content
try_files $uri @rewrite;
}
location @rewrite {
rewrite ^/join/$ /index.php?a=join last;
rewrite ^/user_cpl/$ /index.php?a=user_cpl last;
rewrite ^/stats/(.*)/$ /index.php?a=stats&u=$1 last;
rewrite ^/stats/$ /index.php?a=stats last;
rewrite ^/details/(.*)/$ /index.php?a=details&u=$1 last;
rewrite ^/overall-stats/$ /index.php?a=details last;
rewrite ^/lost_pw/$ /index.php?a=lost_pw last;
rewrite ^/review/(.*)/$ /index.php?a=rate&u=$1 last;
rewrite ^/reviews/(.*)/$ /index.php?a=details&u=$1&all_reviews=1 last;
rewrite ^/category/(.*)/$ /index.php?cat=$1 last;
rewrite ^/rank/(.*)/(.*)/category/(.*)/$ /index.php?start=$1&method=$2&cat=$3 last;
rewrite ^/rank/(.*)/category/(.*)/$ /index.php?method=$1&cat=$2 last;
rewrite ^/rank/(.*)/(.*)/$ /index.php?start=$1&method=$2 last;
rewrite ^/rank/(.*)/$ /index.php?method=$1 [L]
rewrite ^/search/(.*)/(.*)/$ /index.php?a=search&start=$1&q=$2 last;
rewrite ^/search/(.*)/$ /index.php?a=search&q=$1 last;
rewrite ^/search/$ /index.php?a=search last;
rewrite ^/page/(.*)/$ /index.php?a=page&id=$1 last;
}
}
Here is a sample ngix config i took from drupal. no experience myself with it, so you have to try it out.
Adjust your servername ( domain ) and root and you should be good to go ( pure spectulation though since its untested )
Code:server { server_name domain.tld; ## your domain root /www/full/path/to/VL; ## <-- Your only path reference. No ending slash location / { # This is cool because no php is touched for static content try_files $uri @rewrite; } location @rewrite { rewrite ^/join/$ /index.php?a=join last; rewrite ^/user_cpl/$ /index.php?a=user_cpl last; rewrite ^/stats/(.*)/$ /index.php?a=stats&u=$1 last; rewrite ^/stats/$ /index.php?a=stats last; rewrite ^/details/(.*)/$ /index.php?a=details&u=$1 last; rewrite ^/overall-stats/$ /index.php?a=details last; rewrite ^/lost_pw/$ /index.php?a=lost_pw last; rewrite ^/review/(.*)/$ /index.php?a=rate&u=$1 last; rewrite ^/reviews/(.*)/$ /index.php?a=details&u=$1&all_reviews=1 last; rewrite ^/category/(.*)/$ /index.php?cat=$1 last; rewrite ^/rank/(.*)/(.*)/category/(.*)/$ /index.php?start=$1&method=$2&cat=$3 last; rewrite ^/rank/(.*)/category/(.*)/$ /index.php?method=$1&cat=$2 last; rewrite ^/rank/(.*)/(.*)/$ /index.php?start=$1&method=$2 last; rewrite ^/rank/(.*)/$ /index.php?method=$1 [L] rewrite ^/search/(.*)/(.*)/$ /index.php?a=search&start=$1&q=$2 last; rewrite ^/search/(.*)/$ /index.php?a=search&q=$1 last; rewrite ^/search/$ /index.php?a=search last; rewrite ^/page/(.*)/$ /index.php?a=page&id=$1 last; } }
Here is a sample ngix config i took from drupal. no experience myself with it, so you have to try it out.
Adjust your servername ( domain ) and root and you should be good to go ( pure spectulation though since its untested )
Code:server { server_name domain.tld; ## your domain root /www/full/path/to/VL; ## <-- Your only path reference. No ending slash location / { # This is cool because no php is touched for static content try_files $uri @rewrite; } location @rewrite { rewrite ^/join/$ /index.php?a=join last; rewrite ^/user_cpl/$ /index.php?a=user_cpl last; rewrite ^/stats/(.*)/$ /index.php?a=stats&u=$1 last; rewrite ^/stats/$ /index.php?a=stats last; rewrite ^/details/(.*)/$ /index.php?a=details&u=$1 last; rewrite ^/overall-stats/$ /index.php?a=details last; rewrite ^/lost_pw/$ /index.php?a=lost_pw last; rewrite ^/review/(.*)/$ /index.php?a=rate&u=$1 last; rewrite ^/reviews/(.*)/$ /index.php?a=details&u=$1&all_reviews=1 last; rewrite ^/category/(.*)/$ /index.php?cat=$1 last; rewrite ^/rank/(.*)/(.*)/category/(.*)/$ /index.php?start=$1&method=$2&cat=$3 last; rewrite ^/rank/(.*)/category/(.*)/$ /index.php?method=$1&cat=$2 last; rewrite ^/rank/(.*)/(.*)/$ /index.php?start=$1&method=$2 last; rewrite ^/rank/(.*)/$ /index.php?method=$1 [L] rewrite ^/search/(.*)/(.*)/$ /index.php?a=search&start=$1&q=$2 last; rewrite ^/search/(.*)/$ /index.php?a=search&q=$1 last; rewrite ^/search/$ /index.php?a=search last; rewrite ^/page/(.*)/$ /index.php?a=page&id=$1 last; } }
We can't make people aware of something we don't know if it works or not, now 2 months after the request someone has finally tested this on nginx. Now we can include it in the download bundle, and update our system requirements page.
thank you for your feedback!
You need active members area license in order to use our screenshot server.All is working well except screenshots. I get "No input file Specified" when I visit http://MYDOMAIN.com/screenshots.php?list=pending&generate=1
Anybody else with nginx have that problem?