MRatWork Forum by Mustafa Ramadhan

Language Specific Discussions => Indonesia Users => Topic started by: redpages on 2017-09-27, 01:06:21

Title: Mengetahui Mod Rewrite Enabled pada server Nginx
Post by: redpages on 2017-09-27, 01:06:21
DH,

Pada satu applikasi yg saya install di vps rewritenya tidak jalan. Oleh pembuatnya saya diminta untuk mengaktifkan mod rewrite. Setahu saya install Nginx di kloxo MR mod tersebut sudah default.
Bagaimana cara mengetahui sudah enabled belum? saya coba search di phpinfo "mod_rewrite" memang tidak ada. Kalau benar belum enabled gimana cara mengenabled kannya di Nginx?

Terima kasih atas bantuannya.

Quote
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017051802
   - Web: hiawatha-10.6.0-f.1.mr.el6.i686
   - PHP: php56s-5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) i686
   - Hostname: server80.xbackbone.com
C. Services:
   1. MySQL: MariaDB-server-10.0.31-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php70u-cli-7.0.18-1.ius.centos6.i686
        - Multiple:
          * php56m-5.6.30-2.ius.centos6
      - Used: --PHP Branch--
      - Multiple: enable
   3. Web Used: nginx
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.13.0-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-3.ius.centos6.i686
       - PHP Type:
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: bind-9.9.9-1.mr.el6.i686
     - DJBDns: djbdns-1.05-17.4.mr.el6.i386
     - NSD: nsd-4.1.16-1.el6.i686
     - PowerDNS: pdns-4.0.3-1.el6.MIND.i686
     - Yadifa: yadifa-2.2.3-1.mr.el6.i686
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.i686
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.i686
      - spam: bogofilter-1.2.4-1.el6.i686
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.i386
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          1006        523        482         27         38        262
-/+ buffers/cache:        221        784
Swap:         1023          0       1023
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        19G  6.3G   12G  36% /

*** Process Time: 00:00:01:10.70787 (dd:hh:mm:ss:xxxxxx) ***
Title: Re: Mengetahui Mod Rewrite Enabled pada server Nginx
Post by: fossxplorer on 2017-09-27, 21:41:15
Hi,
you are using Nginx as a web server, meaning it's not functioning as a reverse proxy. When you choose Nginx reverse proxy in Kloxo-MR, it will always use Apache to proxy the non-TLS connections to. So the latter will give you the mod_rewrite, while the former (Nginx as web server ALONE) doesn't support mod_rewrite per se in .htaccess file, but you can create custom Nginx web server rewrites directly.

So if mod_rewrite is a MUST, use Nginx proxy + Apache :)