datitisev hi detitisev.
i already install composer and flarum.
and i want ask to you,
where can i setup URL Rewriting with nginx ?
i want to installed flarum in dir xkomo.com/forum
and my server confirguration block for my blog is /etc/nginx/sites-available/xkomo.com
in the doc : http://flarum.org/docs/installation/#url-rewriting
they should me to add this to my server's configuration block. i need to make new server configuration block or use configuration my blog ?
[UPDATE 20/OCT/2017]
Try to follow or you can modification this Code follow with your dir flarum installed
location forum/ { try_files $uri $uri/ forum/index.php?$query_string; }
location forum/api { try_files $uri $uri/ forum/api.php?$query_string; }
location forum/admin { try_files $uri $uri/ forum/admin.php?$query_string; }
location /flarum {
deny all;
return 404;
}
location ~* /forum/*\.php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability
fastcgi_index index.php;
}
location ~* /forum/*\.html$ {
expires -1;
}
location ~* /forum/*\.(css|js|gif|jpe?g|png)$ {
expires 1M;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location= /forum/ {
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types application/atom+xml
application/javascript
application/json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
#text/html -- text/html is gzipped by default by nginx
text/plain
text/xml;
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
}