Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49.
root@ks3285829:/etc/nginx/sites-enabled# cat benio.me server { listen 80; autoindex off; charset utf-8; server_name benio.me; root /home/benio/www; access_log /var/log/nginx/benio.me.access.log; error_log /var/log/nginx/benio.me.error.log; # remove index location ~ /index(.+(x?(php|html?)d*)?)?$ { rewrite ^(.*)/index(.+(x?(php|html?)d*)?)?$ $1/ permanent; } # remove trailing slash location ~ ./$ { rewrite ^(.*)/$ $1 permanent; } # remove php / html extension location ~ .+(x?(php|html?)d*)?$ { rewrite ^(.*).+(x?(php|html?)d*)?$ $1 permanent; } # show site location / { try_files $uri.php $uri.html $uri/index.php $uri/index.html =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include /etc/nginx/fastcgi_params; } # allow internal resources location ~* .(js|css|woff|ttf|png|jpg|gif|svg|xml|pdf|map)$ { add_header Access-Control-Allow-Origin *; } } # remove www prefix server { listen 80; server_name www.benio.me; rewrite ^/(.*) http://benio.me/$1 permanent; }
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011