Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress Whitelist OneSignal - Free Web Push Notifications plugin in your wpsecure.conf file

Discussion in 'Blogs & CMS usage' started by Saumya Majumder, Dec 30, 2016.

  1. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    10:22 AM
    1.9.12
    10.0.24
    Hi,
    Today I've installed OneSignal - Free Web Push Notifications on my wordpress site and and it seems it is needed to be whitelisted in the wpsecure.conf file to actually work. So, I manually have to update that and restart nginx to make it work.


    Code:
    # Whitelist Exception for https://wordpress.org/plugins/onesignal-free-web-push-notifications//
    location ~ ^/wp-content/plugins/onesignal-free-web-push-notifications/ {
      include /usr/local/nginx/conf/php.conf;
    }
    
    Please add this to your default wordpress plugin whitelist script so that other people don't face this issue.
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    cheers thanks for the heads up :D
     
  3. Saumya Majumder

    Saumya Majumder Member

    60
    3
    8
    Mar 16, 2016
    Ratings:
    +12
    Local Time:
    10:22 AM
    1.9.12
    10.0.24
    No problemo :D
     
  4. kinhatula

    kinhatula New Member

    9
    2
    3
    Sep 6, 2017
    Ratings:
    +2
    Local Time:
    11:52 AM
    where is add this code ? thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    2:52 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    if you use centmin.sh menu option 22 installed wordpress install in 123.09beta01, it would be already added into wordpress generated include file /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf where ${vhostname} is your vhost name.