Author: Oxford

https://zaiste.net/posts/nginx-image-server-image-filter-secure-link-modules/ NGINX with enabled image_filter and secure_links modules allows to quickly build an image server. The server can resize and cache images. It acts as a reverse-proxy between the external world and an internal storage with full-size image versions. Additionally, it protects images using MD5 hash values. It’s a basic mechanism of resource authorization. It allows to access an image only if its hash value is known to the requester. NGINX needs to be compiled with those two modules. This is not a default configuration. You can check enabled modules by running nginx -V. nginx-extras package in Ubuntu, however, comes with image_filter and secure_links already enabled. Starting from NGINX 1.9.11 you…

Read More

# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G; # Gzip was on in another conf file of mine…You may need to uncomment the next line. #gzip on; gzip_disable msie6; gzip_static on; gzip_comp_level 4; gzip_proxied any; # Again, be careful that you aren’t overwriting some other setting from another config’s http {} section. gzip_types image/jpeg image/jpg image/png image/gif; server { # Replace with your sub/domain. server_name image.yoursite.com; root /var/www/cache/store/img; index index.html; resolver 8.8.8.8 8.8.4.4; # This requests the original file from itself…

Read More

Hi, Prestashop Community Members. I’ve been recently playing with Varnish 4 as an attempt to reduce my Prestashop 1.6 site’s loading time. So far so good, the loading time have now decreased to ~1.5s and decided to share my VCL with the community so that we can create a big-single VCL configuration file for Varnish 4  for performance, security and a high hit-rate with the feedback from the whole community. Varnish 4 VCL for Prestashop v0.2 (Updated on May 06th, 2016): # # This is an example VCL file for Varnish. # # It does not do anything…

Read More

server { listen 80; server_name ssx8.com; gzip off; location / { # proxy_pass https://www.ssx8.com; rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent; } } server { listen 443 ssl; server_name ssx8.com ; gzip on; ssl_certificate /etc/nginx/certs/www.ssx8.com.pem; ssl_certificate_key /etc/nginx/certs/www.ssx8.com.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; root /var/www/html; location / { rewrite ^/(.*)$ https://www.ssx8.com/$1 permanent; # proxy_pass http://ssx8.com; proxy_set_header User-Agent $http_user_agent; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Accept-Encoding “”; proxy_set_header Accept-Language $http_accept_language; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #proxy_set_header Host www.ssx8.com; #proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #proxy_set_header Cookie “”; #proxy_hide_header Set-Cookie; #proxy_hide_header Location; #proxy_set_header User-Agent “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36”; #proxy_set_header Accept-Encoding “”;…

Read More

As SEO Consultants at Zo Digital Japan, we often see the same familiar patterns of SEO mistakes in Japan. We see these mistake over and over again. Many of these mistakes come from Web Developers who build great looking websites, but have little or no knowledge of common SEO techniques. Don’t become a casualty. In many cases, these problems are easy to detect and easy to fix. And fixing big bottlenecks can lead to a big jump in your search rankings, which yields more traffic to your site, and ultimately more revenue for your business. So based on our experience,…

Read More

http://codecanyon.net/item/intense-shortcodes-and-site-builder-for-wordpress/5600492 Intense includes a vast list of 105+ shortcodes (see the complete list near the bottom of this page) and 18 custom post types (FAQ, Portfolio, Project, News, Coupons, Snippets, Templates, and many more) Intense包含105个以上的简码的广泛列表(请参阅此页面底部附近的完整列表)和18种自定义帖子类型(常见问题解答,项目组合,项目,新闻,优惠券,摘要,模板等)

Read More

Add something similar to the following to wp-config.php above /* That’s all, stop editing! Happy blogging. */: $memcached_servers = array( ‘default’ => array( ‘10.10.10.20:11211’, ‘10.10.10.30:11211’ ) ); The top level array keys, are cache groups, where ‘default’ corresponds to any cache group that is not explicitly defined. This allows for specifying memcached servers that only handle certain cache groups. The most common use is only specifying ‘default’. Possible cache groups are: {$taxonomy}_relationships {$meta_type}_meta {$taxonomy}_relationships blog-details blog-id-cache blog-lookup bookmark calendar category comment counts general global-posts options plugins post_ancestors post_meta posts rss site-lookup site-options site-transient terms themes timeinfo transient user_meta useremail userlogins usermeta…

Read More

Below International Business Listing Sites helps you build citation globally. Listing on below list will starts showing up your business in Google map searched globally. List your Business Name, Business Phone Number and Business address on mentioned Business listing sites. Note: You should keep Business Name, Business Address and Business Phone number identical on all business listing sites. It will help your business show up on Google maps and your website will get backlinks as well. Getting backlinks to your business website will help in SERP (Search Engine Results Pages) ranking. Google, Bing, Yahoo and other search engines crawl citation…

Read More

Tutorial: Install a LAMP Web Server on Amazon Linux 2 PDF Kindle RSS The following procedures help you install an Apache web server with PHP and MariaDB (a community-developed fork of MySQL) support on your Amazon Linux 2 instance (sometimes called a LAMP web server or LAMP stack). You can use this server to host a static website or deploy a dynamic PHP application that reads and writes information to a database. Important To set up a LAMP web server on Amazon Linux AMI, see Tutorial: Install a LAMP Web Server with the Amazon Linux AMI. If you are trying to set up…

Read More

Solved:Could not resolve host: mirrors.iuscommunity.org Quote Post by henk » 29 Jan 2020 13:02 Yum update had an issue with the IUS mirror list. ( eFa4 kickstart on Centos7 minimal version installed some time ago) Could not retrieve mirrorlist https://mirrors.iuscommunity.org/mirror … tocol=http error was 14: curl#6 – “Could not resolve host: mirrors.iuscommunity.org; Unknown error” See “https://github.com/iusrepo/infrastructure/issues/14 Steps: 1. Delete ius-release CODE: SELECT ALL yum erase ius-release rm /etc/yum.repos.d/ius*.repo* 2. and reinstalled it https://ius.io/setup CODE: SELECT ALL yum install \ https://repo.ius.io/ius-release-el7.rpm \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm https://forum.efa-project.org/viewtopic.php?f=19&t=4117

Read More

Amazon has come a long way from its humble beginnings as an online bookseller. Since its launch in 1994, Amazon has grown to become an ecommerce behemoth. These days, it’s one of the first places shoppers turn to buy anything from cleaning products to the latest tech gadgets. And with over 564 million products sold in the U.S. alone, Amazon is the uncontested ecommerce leader and continues to grow and innovate. This success took years to achieve and is due in part to Amazon’s strategic approach to growth. Any ecommerce business, regardless of where they start, can learn from Amazon’s example to…

Read More

In this tutorial we’ll install Memcached and configure it in phpbb 3.2, which not only lower the server load also make you phpbb forum super fast I meant lightening fast. Memcached is used to lower the database load, it will cache the frequently used MySQL query and save as key cache on RAM – which will save the precious juice for another tasks. For this tutorial full root access is required also it will work on shared hosting (cpanel) if memcached and php memcached are installed and enabled for your account. Lets get started :- Installing Memcached and PHP Memcached : Centos/RHEL 6/7 : First install…

Read More

linux下配置使用memcache功能,比win下稍微复杂一点,主要包括:安装libevent函数库、安装memcached、配置php扩展。 一、安装libevent函数库 libevent各版本地址:http://libevent.org/old-releases.html 在此我安装当前最稳定版本:libevent-2.0.21 1.下载:# wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz 2.解压: #tar -zxvf libevent-2.0.21-stable.tar.gz 3 配置及编译安装: #cd ibevent-2.0.21-stable #./configure –prefix=/usr/local/libevent-2.0.21-stable #make #make install (我安装到了/usr/local/libevent-2.0.21-stable/下) 4.检查是否安装成功: #ls -al /usr/local/libevent-2.0.21-stable/lib | grep libevent 这里写图片描述 二、安装memcached memcached各版本下载地址:https://github.com/memcached/memcached/wiki/ReleaseNotes 在此我安装当前最稳定版本: memcache-1.5.9 1.下载:#wget http://memcached.org/files/memcached-1.5.9.tar.gz 2.解压:#tar -zxvf memcached-1.5.9.tar.gz 3. 配置及编译安装: #cd memcached-1.4.32 #./configure -with-libevent=/usr/local/libevent-2.0.21-stable/ –prefix=/usr/local/memcached-1.5.9 #make #make install (同样安装到了/usr/local/memcached-1.5.9/下) 4.查看是否安装成功: 这里写图片描述 5.安装成功后启动一下看安装是否成功 # /usr/local/memcached-1.5.9/bin/memcached -d -m 1028 -p 11211 -u root # ps -ef|grep memcached 6、配置开机自启动 # vim /etc/init.d/memcached #! /bin/sh # # chkconfig: – 55 45 # description: The memcached daemon is a network memory cache service. # processname: memcached # config: /etc/sysconfig/memcached # Source function library. .…

Read More

Does WP Rocket Support Memcached? WP Rocket does not have any interaction with Memcached – it is a totally separate caching system. You may use them at the same time without issue. There is no integration for Memcached included in WP Rocket. If you choose to set up and use Memcached, you will need an additional plugin to manage the Memcached cache, e.g.  https://wordpress.org/plugins/memcached-redux/ This is not an official endorsement of that plugin, only a suggestion,  please conduct your own research 🙂 If you are a SiteGround customer, your hosting plan may include the ability to easily activate Memcached. === Memcached Redux === Contributors: wonderboymusic, ryan,…

Read More

Installation Install memcached on at least one server. Note the connection info. The default is 127.0.0.1:11211. Install the PECL memcache extension Copy object-cache.php to wp-content Add the WP_CACHE_KEY_SALT constant to the wp-config.php: php define(‘WP_CACHE_KEY_SALT’, ‘…long random string…’); This helps prevent cache pollution when multiplte WordPress installs are using the same Memcached server. The value must be unique for each WordPress install. == Frequently Asked Questions == = How can I manually specify the memcached server(s)? = Add something similar to the following to wp-config.php above `/* That’s all, stop editing! Happy blogging. */`: ` $memcached_servers = array( ‘default’ => array( ‘10.10.10.20:11211’, ‘10.10.10.30:11211’ ) ); `

Read More

Last weekend, I switched the themes of my 2 blogs (this one and another one written in Japanese) to a customized version of the Fictive theme. I tried not to change too many things aside from the color scheme, so it’s easier to maintain the CSS. However, I did make some essential modifications to optimize font properties for my Japanese blog. I’ll share what I did, and the reasons behind it. Please note these are just examples based on my personal preferences, rather than absolute rules that all Japanese designers follow. That said, I think the changes I made are working great for my…

Read More

Automatically push an updated file whenever it is changed Linux Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools) Configure git as usual Clone the git repository of interest from github and, if necessary, add file you want to monitor Allow username/password to be cached so you aren’t asked everytime git config credential.helper store Open a terminal and navigate, as necessary; issue the following command # <<branch>> = branch you are pushing to # <<file>> = file you want to monitor inotifywait -q -m -e CLOSE_WRITE –format=”git commit -m ‘auto commit’ %w && git push origin <<branch>>” <<file>> | bash In a separate shell, do…

Read More

Turnkey Plugins \ Social Login for phpBB 3.1.x / 3.2.x / 3.3.x Fork on Github Social Login for phpBB 3.1.x / 3.2.x / 3.3.x Social Login is a free phpBB extension that allows your users to login and register with their social network accounts. It increases your phpBB user registration rate by simplifying the registration process for new users and provides demograpic data retrieved from the social network profiles. Let new users sign up with one click with their social network accounts. No more tedious registration forms or complicated captchas to fill out. Increase your registration rate by simplifying your signup form. The phpBB…

Read More

phpBB is a free flat-forum bulletin board software written in PHP. It enables individuals and webmasters to set up community bulletin boards in minutes to stay in touch with group of people or ideas. This brief tutorial is going to show students and new users an easy way to get phpBB working on Ubuntu 17.04 | 17.10 with Nginx, MariaDB and PHP support. phpBB requires the LAMP / LEMP stack to function. It is easy to setup and maintain and completely free… Many reputable online forum communities use this software to run their bulletin boards… If you’re looking for a…

Read More

install php 7.2 mariadb nginx + purge + sub_filter yum -y update yum -y install wget zip unzip gzip cd /usr/local/src rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install php72w-common php72w-fpm php72w-opcache php72w-gd php72w-mysqlnd php72w-mbstring php72w-pecl-redis php72w-pecl-memcached php72w-devel systemctl enable php-fpm systemctl start php-fpm wget http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz tar zxvf ngx_cache_purge-2.3.tar.gz # nginx install # https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/ # vi /etc/yum.repos.d/nginx.repo # [nginx] # name=nginx repo # baseurl=https://nginx.org/packages/mainline/centos/7/$basearch/ # gpgcheck=0 # enabled=1 yum -y install gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel openssl openssl-devel yum -y install nginx #wget -O ngx_http_substitutions_filter_module-master.zip https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip #unzip ngx_http_substitutions_filter_module-master.zip wget http://nginx.org/download/nginx-1.17.10.tar.gz tar zxvf nginx-1.17.10.tar.gz cd nginx-1.17.10 ./configure –with-poll_module…

Read More

Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a load of rubbish he legged it Harry give us a bell, some dodgy chav on your bike mate say that blatant so I said cup of tea chip shop. Bugger all mate chinwag skive off bender cack chap baking cakes brown bread bodge wind up, amongst…

Read More

Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a load of rubbish he legged it Harry give us a bell, some dodgy chav on your bike mate say that blatant so I said cup of tea chip shop Bugger all mate chinwag skive off bender cack chap baking cakes brown bread bodge wind up, amongst…

Read More

Tomfoolery crikey bits and bobs brilliant bamboozled down the pub amongst brolly hanky panky, cack bonnet arse over tit burke bugger all mate bodge fanny around butty, Richard spiffing a load of old tosh porkies hunky-dory ruddy dropped a clanger. Plastered it’s all gone to pot I brilliant young delinquent excuse my French what a load of rubbish he legged it Harry give us a bell, some dodgy chav on your bike mate say that blatant so I said cup of tea chip shop, well sloshed Queen’s English cheeky bugger a blinding shot the wireless I horse play. What a plonker…

Read More