Discover Centmin Mod today
Register Now

Wordpress 403 on plugin edit on backend

Discussion in 'Blogs & CMS usage' started by ahmed, Oct 29, 2017.

  1. ahmed

    ahmed Member

    223
    17
    18
    Feb 21, 2017
    Ratings:
    +23
    Local Time:
    1:36 AM
    Hello

    can u please remind me with the solution to this one?

    Code (Text):
    2017/10/28 20:36:58 [error] 13085#13085: *4633 access forbidden by rule, client: 84.84.843.833, server: domain.mom, request: "GET /wp-content/plugins/viral-loops-wp-integration/assets/js/vl-editor/popup.php?ver=2.0.7&source=insert&ajaxurl=https%3A%2F%2Fdomain.mom%2Fwp-admin%2Fadmin-ajax.php HTTP/2.0", host: "domain.mom", referrer: "https://domain.mom/wp-admin/post.php?post=10758&action=edit"
    
    2017/10/28 20:37:05 [error] 13085#13085: *4633 access forbidden by rule, client: 84.84.843.833, server: domain.mom, request: "GET /wp-content/plugins/viral-loops-wp-integration/assets/js/vl-editor/popup.php?ver=2.0.7&source=insert&ajaxurl=https%3A%2F%2Fdomain.mom%2Fwp-admin%2Fadmin-ajax.php HTTP/2.0", host: "domain.mom", referrer: "https://domain.mom/wp-admin/post.php?post=10758&action=edit"
    
     
  2. ahmed

    ahmed Member

    223
    17
    18
    Feb 21, 2017
    Ratings:
    +23
    Local Time:
    1:36 AM
  3. eva2000

    eva2000 Administrator Staff Member

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    straight from that link
     
  4. ahmed

    ahmed Member

    223
    17
    18
    Feb 21, 2017
    Ratings:
    +23
    Local Time:
    1:36 AM
    the autoprotect dosnt have any mention
    and the /usr/local/nginx/conf/wpsecure_${vhostname}.conf is empty
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    in 123.09beta01 it's actually at /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf

    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)
     
  6. ahmed

    ahmed Member

    223
    17
    18
    Feb 21, 2017
    Ratings:
    +23
    Local Time:
    1:36 AM
    it worked by :

    Code:
    # Whitelist Exception for viral loops/
    location ~ ^/wp-content/plugins/viral-loops-wp-integration/ {
      include /usr/local/nginx/conf/php.conf;
      # below include file needs to be manually created at that path and to be uncommented
      # by removing the hash # in front of below line to take effect. This wpwhitelist_common.conf
      # allows you to add commonly shared settings to all wp plugin location matches which
      # whitelist php processing access at /usr/local/nginx/conf/wpincludes/domain.com/wpsecure_domain.com.conf
      #include /usr/local/nginx/conf/wpincludes/domain/wpwhitelist_common.conf;
    }
    
     
    • Like Like x 1
  7. ahmed

    ahmed Member

    223
    17
    18
    Feb 21, 2017
    Ratings:
    +23
    Local Time:
    1:36 AM
    do I need to uncomment this:
    #include /usr/local/nginx/conf/wpincludes/domain/wpwhitelist_common.conf;
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    excellent :)
    no need to uncomment
     
    • Like Like x 1