Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
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:
Click Here
Please login or register. 2024-04-27, 16:28:00

Author Topic: [ASK]Rewrite Rule di nginx  (Read 5576 times)

0 Members and 1 Guest are viewing this topic.

Offline prandah

  • Senior Member
  • *
  • Posts: 344
  • Karma: +0/-0
    • View Profile
    • https://www.bowo.name
[ASK]Rewrite Rule di nginx
« on: 2013-02-16, 07:50:07 »
halo gimana sih cara nya untuk rewrite rule nginx di kloxo MR ini ?
dan file mana yang harus di edit ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ASK]Rewrite Rule di nginx
« Reply #1 on: 2013-02-16, 08:05:12 »
Pelajari file yang ada di /home/nginx/tpl dan /home/nginx/conf/globals (terutama proxy.conf dan php-fpm.conf).

Jika ada yang mau diedit maka copy file ke custom.<namefile> (misalnya proxy.conf ke custom.proxy.conf) dan kemudian edit file custom ini. Sebagai contoh, jika anda jalankan 'sh /script/fixweb' (script untuk reconfigure webserver setting) maka bila fixweb temukan custom.proxy.conf maka dia pakai itu daripada file asli proxy.conf
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WPF

  • Valuable Member
  • *
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: [ASK]Rewrite Rule di nginx
« Reply #2 on: 2013-02-16, 14:00:48 »
Ts udah bisa belum ??
« Last Edit: 1970-01-01, 01:00:00 by Guest »
:)

Offline prandah

  • Senior Member
  • *
  • Posts: 344
  • Karma: +0/-0
    • View Profile
    • https://www.bowo.name
Re: [ASK]Rewrite Rule di nginx
« Reply #3 on: 2013-02-16, 19:06:09 »
dereng mas, kembali ke apache hehehe :D
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline ariefewweb

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: [ASK]Rewrite Rule di nginx
« Reply #4 on: 2013-02-20, 23:22:38 »
Jika Wordpress permalinks = /%category%/%postname%/
dan .htaccess    
Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.namadomain.com$ [NC]
RewriteRule ^(.*)$ http://namadomain.com/$1 [R=301,L]
</IfModule>
contoh editnya gimana?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline WPF

  • Valuable Member
  • *
  • Posts: 53
  • Karma: +0/-0
    • View Profile
Re: [ASK]Rewrite Rule di nginx
« Reply #5 on: 2013-02-21, 18:44:13 »
nginx + mod-php gan hehehe ok drpd apache doank
« Last Edit: 1970-01-01, 01:00:00 by Guest »
:)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ASK]Rewrite Rule di nginx
« Reply #6 on: 2013-02-21, 19:01:49 »
Tuh dibeberapa forum tetangga lagi ramai bicara kalau CPanel kena hack.

Kalau tidak salah default CPanel kan pakai 'keluarga' mod_php sebagai default php-type. Kan banyak pemakai mereka yang 'terima jadi' pakai default saja.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ariefewweb

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: [ASK]Rewrite Rule di nginx
« Reply #7 on: 2013-02-23, 04:36:25 »
Quote from: "ariefewweb"
Jika Wordpress permalinks = /%category%/%postname%/
dan .htaccess    
Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.namadomain.com$ [NC]
RewriteRule ^(.*)$ http://namadomain.com/$1 [R=301,L]
</IfModule>
contoh editnya gimana?

up
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: [ASK]Rewrite Rule di nginx
« Reply #8 on: 2014-11-25, 02:20:49 »
up
kebetulan sudah ada tritnya jd saya mau nanya di sini juga....
untuk versi kloxomr 7 sekarang apa bisa menggunakan toolkits seperti hiawatha menggunakan (.hiawatha)?
saya lihat ada folder /opt/configs/nginx/conf/toolkits

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [ASK]Rewrite Rule di nginx
« Reply #9 on: 2014-11-25, 04:14:47 »
Karena 'bawaan' masing-masing. hampir tidak mungkin untuk mengimplementasikan rewrite-rule sebagaimana yang diterapkan apache atau hiawatha.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline GentZu

  • Senior Member
  • *
  • Posts: 323
  • Karma: +0/-0
  • Gender: Male
  • yare yare...
    • View Profile
Re: [ASK]Rewrite Rule di nginx
« Reply #10 on: 2014-11-25, 04:36:40 »
Karena 'bawaan' masing-masing. hampir tidak mungkin untuk mengimplementasikan rewrite-rule sebagaimana yang diterapkan apache atau hiawatha.
terus supaya bisa di apply ke domain tertentu apakah buat custom files di /opt/configs/nginx/conf/domains/custom.domain.com.conf ? atau di tempat lain?
terus saya jg bingung ketika misal config location / {} itu di terapkan di path mana?
« Last Edit: 2014-11-25, 04:38:26 by GentZu »

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.069 seconds with 18 queries.

web stats analysis