Oxwall, you recommend using Nginx in your oxwall wiki... you should also provide the configuration needed for it.
http://docs.oxwall.org/userguide:performance:optimization
Kinda pointless really... It's not up to our hosters to figure out the specific config for nginx. In my case, I have a dedicated machine, and while I have no problems installing and getting nginx running. It requires specific configuration for Oxwall to work.
There's no specific configuration needed, you just need to indicate correct domains and paths to the folders with the static in nginx config files. Mostly common settings will do.
So is the config mentioned here too much and un-necessary? Nothing I try seems to work properly...
The onyl differenece is I'm not using php-fpm byt using fastcgi which I setup and adjusted the config for:
fastcgi_pass 127.0.0.1:9000;
(replacing 24.5.6.7 with your server's IP):
***** START CONFIG *****
server {
root /var/www/mysite;
listen 24.5.6.7:80;
server_name www.mysite.com;
access_log /var/log/nginx/mysite.org.access.log;
if ($uri !~ "^/index.php"){set $rule_0 1$rule_0; }
if ($uri !~ "/ow_updates/index.php"){set $rule_0 2$rule_0; }
if ($uri !~ "/ow_updates/"){set $rule_0 3$rule_0; }
if ($uri !~ "/ow_cron/run.php"){set $rule_0 4$rule_0; }
if ($uri ~ "(/|.php|.html|.htm|.xml|.feed|robots.txt|.raw|/[^.]*)$"){set $rule_0 5$rule_0;}if ($rule_0 = "54321"){rewrite /(.*) /index.php; }
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(.*)$;
#fastcgi_pass backend;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/mysite$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
}
***** END CONFIG *****