Halo Pak MR.
Barusan semalam saya install Kloxo-MR di VPS baru, ternyata saat saya install dan pilih nginx-proxy, error dengan pesan:
nginx: [emerg] "server" directive is not allowed here in /opt/configs/nginx/conf/domains/serv22.kombathost.com.conf:77
nginx: configuration file /etc/nginx/nginx.conf test failed
ternyata di file /opt/configs/nginx/conf/domains/serv22.kombathost.com.conf di line 77 scriptnya kurang tanda kurung kurawal (}).
berikut default yang diberikan kloxo-MR:
### begin - web of 'serv22.kombathost.com' - do not remove/modify this line
## cp for 'serv22.kombathost.com'
server {
#disable_symlinks if_not_owner;
include '/opt/configs/nginx/conf/globals/listen_nonssl.conf';
include '/opt/configs/nginx/conf/globals/gzip.conf';
include '/opt/configs/nginx/conf/globals/header_base.conf';
server_name cp.serv22.kombathost.com;
include '/opt/configs/nginx/conf/globals/acme-challenge.conf';
index index.php index.shtml index.pl index.py index.cgi index.rb Default.aspx Default.asp index.html index.htm default.htm welcome.html;
set $var_domain 'cp.serv22.kombathost.com';
set $var_rootdir '/home/kloxo/httpd/cp';
root $var_rootdir;
set $var_user 'apache';
set $var_fpmport '50000';
set $var_phpselected 'php';
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
include '/opt/configs/nginx/conf/globals/switch_standard.conf';
}
## webmail for 'serv22.kombathost.com'
server {
#disable_symlinks if_not_owner;
include '/opt/configs/nginx/conf/globals/listen_nonssl.conf';
include '/opt/configs/nginx/conf/globals/gzip.conf';
include '/opt/configs/nginx/conf/globals/header_base.conf';
server_name webmail.serv22.kombathost.com;
include '/opt/configs/nginx/conf/globals/acme-challenge.conf';
index index.php index.shtml index.pl index.py index.cgi index.rb Default.aspx Default.asp index.html index.htm default.htm welcome.html;
set $var_domain 'webmail.serv22.kombathost.com';
set $var_rootdir '/home/kloxo/httpd/webmail';
root $var_rootdir;
set $var_user 'apache';
set $var_fpmport '50000';
set $var_phpselected 'php';
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
include '/opt/configs/nginx/conf/globals/switch_standard.conf';
## cp for 'serv22.kombathost.com'
server {
#disable_symlinks if_not_owner;
include '/opt/configs/nginx/conf/globals/listen_ssl.conf';
include '/opt/configs/nginx/conf/globals/gzip.conf';
include '/opt/configs/nginx/conf/globals/header_base.conf';
server_name cp.serv22.kombathost.com;
include '/opt/configs/nginx/conf/globals/acme-challenge.conf';
index index.php index.shtml index.pl index.py index.cgi index.rb Default.aspx Default.asp index.html index.htm default.htm welcome.html;
set $var_domain 'cp.serv22.kombathost.com';
set $var_rootdir '/home/kloxo/httpd/cp';
root $var_rootdir;
set $var_user 'apache';
set $var_fpmport '50000';
set $var_phpselected 'php';
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
include '/opt/configs/nginx/conf/globals/switch_standard.conf';
}
#kode selanjutnya.....
harusnya, persis di atas kode: `## cp for 'serv22.kombathost.com'` ditutup dulu pakai kurung kurawal seperti ini:
### begin - web of 'serv22.kombathost.com' - do not remove/modify this line
## cp for 'serv22.kombathost.com'
server {
#disable_symlinks if_not_owner;
include '/opt/configs/nginx/conf/globals/listen_nonssl.conf';
include '/opt/configs/nginx/conf/globals/gzip.conf';
include '/opt/configs/nginx/conf/globals/header_base.conf';
server_name cp.serv22.kombathost.com;
include '/opt/configs/nginx/conf/globals/acme-challenge.conf';
index index.php index.shtml index.pl index.py index.cgi index.rb Default.aspx Default.asp index.html index.htm default.htm welcome.html;
set $var_domain 'cp.serv22.kombathost.com';
set $var_rootdir '/home/kloxo/httpd/cp';
root $var_rootdir;
set $var_user 'apache';
set $var_fpmport '50000';
set $var_phpselected 'php';
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
include '/opt/configs/nginx/conf/globals/switch_standard.conf';
}
## webmail for 'serv22.kombathost.com'
server {
#disable_symlinks if_not_owner;
include '/opt/configs/nginx/conf/globals/listen_nonssl.conf';
include '/opt/configs/nginx/conf/globals/gzip.conf';
include '/opt/configs/nginx/conf/globals/header_base.conf';
server_name webmail.serv22.kombathost.com;
include '/opt/configs/nginx/conf/globals/acme-challenge.conf';
index index.php index.shtml index.pl index.py index.cgi index.rb Default.aspx Default.asp index.html index.htm default.htm welcome.html;
set $var_domain 'webmail.serv22.kombathost.com';
set $var_rootdir '/home/kloxo/httpd/webmail';
root $var_rootdir;
set $var_user 'apache';
set $var_fpmport '50000';
set $var_phpselected 'php';
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
include '/opt/configs/nginx/conf/globals/switch_standard.conf';
}
##tambahkan kurung kurawal di atas ini
## cp for 'serv22.kombathost.com'
server {
#disable_symlinks if_not_owner;
include '/opt/configs/nginx/conf/globals/listen_ssl.conf';
include '/opt/configs/nginx/conf/globals/gzip.conf';
include '/opt/configs/nginx/conf/globals/header_base.conf';
server_name cp.serv22.kombathost.com;
include '/opt/configs/nginx/conf/globals/acme-challenge.conf';
index index.php index.shtml index.pl index.py index.cgi index.rb Default.aspx Default.asp index.html index.htm default.htm welcome.html;
set $var_domain 'cp.serv22.kombathost.com';
set $var_rootdir '/home/kloxo/httpd/cp';
root $var_rootdir;
set $var_user 'apache';
set $var_fpmport '50000';
set $var_phpselected 'php';
fastcgi_connect_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_read_timeout 300s;
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
include '/opt/configs/nginx/conf/globals/switch_standard.conf';
}
#kode selanjutnya.....
tolong diupdate Pak, biar untuk fix tinggal update kloxo-MR saja.
thanks