MRatWork Forum by Mustafa Ramadhan - rewrite rules nginx server

Sponsor:
Server and Web Integrator
Link:
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:

MRatWork Forum | Please login or register. | 2017-11-07, 21:33:38

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- rewrite rules nginx server

« previous next »

- Print

Pages: [1] Go Down

### Author Topic: rewrite rules nginx server (Read 696 times)

0 Members and 1 Guest are viewing this topic.

#### kacank87

- Junior Member
- Posts: 42
- Karma: +0/-0

##### rewrite rules nginx server

« on: 2016-03-28, 19:25:30 »
permisi mastah
mau tanya seputar rewrite rules di nginx server kloxo
saya baru migrasi dari apache ke nginx karena server sangat berat menggunakan apache
nah cms saya menggunakan .htaccess sedangkan nginx tidak membaca htacess
setelah saya convert dari apache ke nginx menjadi seperti ini
Quote

> # nginx configuration
> location / {
> if (-e $request_filename){
> rewrite ^/(.*) /$1 break;
> }
> rewrite "^/([a-z]+)(/([^/]{0,32})(/.+)?)?$" /index.php?a=$1&q=$3 break;
> }

pertanyaannya :
1. dimanakah kode di atas di masukkan ?
2. kemudian langkah selanjutnya
Thanks mastah
salam
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: rewrite rules nginx server

« Reply #1 on: 2016-03-28, 21:07:30 »
di Kloxo-MR sudah ada 'default' rewrite-rule untuk nginx. Sepanjang untuk 'standard' wordpress sudah memadai.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

#### kacank87

- Junior Member
- Posts: 42
- Karma: +0/-0

##### Re: rewrite rules nginx server

« Reply #2 on: 2016-03-29, 03:47:17 »
saya tidak menggunakan wordpress.
namun cms buatan sendiri mas gan.
bagaimana ya cara modifikasi nya .
Logged

#### MRatWork

- Administrator
- The Elite
- Posts: 15,381
- Karma: +112/-9
- Gender:

##### Re: rewrite rules nginx server

« Reply #3 on: 2016-03-29, 06:13:50 »
Copy /opt/configs/nginx/conf/globals/php-fpm_standard.conf, php-fpm_standard_ssl.conf, php-fpm_wildcards.conf, php-fpm_wildcards_ssl.conf ke custom.* (misalnya php-fpm_standard.conf ke custom.php-fpm_standard.conf). Edit file custom.* tersebut.
Setelah itu, jalankan 'sh /script/fixweb; sh /script/restart-web -y'.
Logged
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

- Print

Pages: [1] Go Up
« previous next »

- MRatWork Forum by Mustafa Ramadhan »
- Language Specific Discussions »
- Indonesia Users »
- rewrite rules nginx server

Top 4 Global Search Engines: Google Bing Baidu Yahoo

..:: Monetize your Website or Blog with BidVertiser ::.. ..:: Sell your ad space with BidVertiser ::..

- Design By SMFSimple.com
- SMF 2.0.14 | SMF © 2017, Simple Machines

Page created in 0.036 seconds with 16 queries.

Mirror created by MasterkinG32.CoM