Konfigurasi Nginx untuk WordPress
December 14, 2010 03:03PM
Berikut ini konfigurasi nginx.conf yang saya gunakan untuk wordpress

server {
limit_conn myzone 10;
listen 80;
autoindex on;
server_name secure.id-id.net;
location / {
root /home/user/public_html;
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
if ($request_uri ~* ^.*/.*$) {
rewrite ^/(w*)/(.*)$ /$1/index.php?q=$2 last;
break;
}
}
location ~ \.php$ {
root public_html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/user/public_html$fastcgi_script_name;
include fastcgi_params;
}
}

Silahkan disesuaikan sesuai kebutuhan masing-masing
Semoga bermanfaat
Re: Konfigurasi Nginx untuk WordPress
December 16, 2010 10:42PM
mantap nnti di coba klo dah beli servernya
Re: Konfigurasi Nginx untuk WordPress
October 30, 2012 02:37AM
cara lain bisa menggunakan plugin nginx Compatibility

http://wordpress.org/extend/plugins/nginx-compatibility/

konfigurasi pada nginx.conf

http://wordpress.org/extend/plugins/nginx-compatibility/other_notes/

semoga membantu
Re: Konfigurasi Nginx untuk WordPress
November 08, 2012 02:28AM
woppywush Wrote:
-------------------------------------------------------
> cara lain bisa menggunakan plugin nginx Compatibility
>
> http://wordpress.org/extend/plugins/nginx-compatibility/
>
> konfigurasi pada nginx.conf
>
> http://wordpress.org/extend/plugins/nginx-compatibility/other_notes/
>
> semoga membantu


saya sudah menggunakan plugin tersebut tapi, permalink tetap tidak jalan.. kenapa yah?
Re: Konfigurasi Nginx untuk WordPress
December 22, 2020 11:19PM
oxigen Wrote:
-------------------------------------------------------
> woppywush Wrote:
> -------------------------------------------------------
> > cara lain bisa menggunakan plugin nginx Compatibility
> >
> > http://wordpress.org/extend/plugins/nginx-compatibility/
> >
> > konfigurasi pada nginx.conf
> >
> >
> http://wordpress.org/extend/plugins/nginx-compatibility/other_notes/
> >
> > semoga membantu
>
>
> saya sudah menggunakan plugin tersebut tapi, permalink tetap tidak
> jalan.. kenapa yah?


coba pake ini gan

### WP Config NGINX ###
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}

### disable XML.rpc ###
location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
return 444;
}

#### XML Sitemap Generator #####
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;

###### END OF XML Sitemap Generator #####

di saya pake setting itu lancar jaya
Semoga membantu
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready