mohon bantuannnya. saya pakai vBulletin saya sedkit bingung dengan rule nginx
isi nya custom.domain.com.conf
### begin content - please not remove this line
## web for 'ditusuk.net'
server {
listen xxx.xxx.xxx.xxx:80;
server_name domain.net;
index index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl;
set $domain 'domain.net';
set $rootdir '/home/admin/domain';
root $rootdir;
set $user 'admin';
# include '/home/nginx/conf/globals/generic.conf';
access_log /home/httpd/domain.net/stats/ditusuk.net-custom_log main;
error_log /home/httpd/domain.net/stats/ditusuk.net-error_log;
set $statstype 'awstats';
include '/home/nginx/conf/globals/awstats.conf';
set $fpmport '51006';
include '/home/nginx/conf/globals/vb-fpm.conf';
include '/home/nginx/conf/globals/perl.conf';
include '/home/nginx/conf/globals/vb.conf';
rewrite ^(.*) http://www.domain.net permanent;
}
isi dari vb.conf
[root@shack globals]# cat vb.conf
location = / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
[root@shack globals]#
isi dari vb-fpm.conf
[root@shack globals]# cat vb-fpm.conf
location ~ .php$ {
fastcgi_pass 127.0.0.1:$fpmport;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
location ~ .php($|/) {
set $script $uri;
set $path_info "";
if ($uri ~ "^(.+.php)(/.+)") {
set $script $1;
set $path_info $2;
}
fastcgi_pass 127.0.0.1:$fpmport;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_param SCRIPT_NAME $script;
fastcgi_param PATH_INFO $path_info;
}
### MR -- just enough remove # below for enable nginx cache
fastcgi_cache fcache;
fastcgi_cache_valid 200 1h;
fastcgi_cache_valid 301 1h;
fastcgi_cache_valid 302 1h;
fastcgi_cache_valid any 1m;
### MR -- must be using nginx with including ngx_purge_cache
### must be using special nginx (nginx with ngx_purge_cache include
location ~ /purge(/.*) {
### MR -- just enough remove # below for enable purge_cache
#proxy_cache_purge pcache "$scheme://$host$1$request_method";
allow 127.0.0.1;
deny all;
}
## MR - increasing upload size to 15M
client_max_body_size 15M;
client_body_buffer_size 128k;
fastcgi_connect_timeout 120s;
fastcgi_send_timeout 120s;
fastcgi_read_timeout 120s;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;
try_files $uri $uri/ /index.php;
# }
[root@shack globals]#
masalahnya kok gak bisa yah
. permalink nya gak work