Author: Oxford

https://computingforgeeks.com/how-to-install-vsphere-esxi-7/ In today’s guide we will be discussing the installation of vSphere ESXi 7 on Cisco UCS bare-metal Servers. The installation process can be used for any other type of server hardware. The two core components of vSphere are ESXi and vCenter Server. In this guide we will perform installation of ESXi 7 which is the virtualization platform on which you can create and run virtual machines and virtual appliances. Our next guide will be on vCenter Server installation. vCenter is a service that acts as a central administrator for ESXi hosts connected in a network. With vCenter Server you…

Read More

https://www.drupal.org/docs/theming-drupal/defining-a-theme-with-an-infoyml-file To create a Drupal 8 or later theme you need to first create a THEMENAME.info.yml file that provides meta-data about your theme to Drupal. This is similar to how modules and installation profiles are being defined, and as such, it is important to set the ‘type’ key in the file.info.yml to ‘theme’ in order to differentiate it. This page provides an example fileTHEMENAME.info.yml and an overview of the information that the file can contain. Name your theme The first step in creating a theme is to choose a human-readable name for it, and a corresponding machine name. The machine name will be used…

Read More

# Global restrictions configuration file. # Designed to be included in any server {} block. location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban) location ~ /\. { deny all; } # Restrict access to WordPress dashboard location /wp-admin { allow 127.0.0.1; allow Your_IP; deny all; } # Deny access to any files with a .php extension in…

Read More

server { listen 80; listen 443 ssl http2; server_name fr.audisound.net *.audisound.net; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/fr.audisound.net; #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #error_page 404/404.html; ssl_certificate /www/server/panel/vhost/cert/fr.audisound.net/fullchain.pem; ssl_certificate_key /www/server/panel/vhost/cert/fr.audisound.net/privkey.pem; ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; add_header Strict-Transport-Security “max-age=31536000”; error_page 497 https://$host$request_uri; #SSL-END #ERROR-PAGE-START 错误页配置,可以注释、删除或修改 #error_page 404 /404.html; #error_page 502 /502.html; #ERROR-PAGE-END #PHP-INFO-START PHP引用配置,可以注释或修改 include enable-php-00.conf; #PHP-INFO-END #REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效 include /www/server/panel/vhost/rewrite/fr.audisound.net.conf; #REWRITE-END #禁止访问的文件或目录 location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) { return 404; } #一键申请SSL证书验证目录相关设置 location ~ \.well-known{ allow all; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; error_log /dev/null; access_log /dev/null; } location ~ .*\.(js|css)?$ { expires 12h; error_log /dev/null;…

Read More

<div class=”w3-container”> <h2>Closable List Items</h2> <p>To close/hide the list items, click on the “x”:</p> <ul class=”w3-ul w3-card-4″> <li class=”w3-display-container”>Jill <span onclick=”this.parentElement.style.display=’none'” class=”w3-button w3-transparent w3-display-right”>&times;</span></li> <li class=”w3-display-container”>Adam <span onclick=”this.parentElement.style.display=’none'” class=”w3-button w3-transparent w3-display-right”>&times;</span></li> <li class=”w3-display-container”>Eve <span onclick=”this.parentElement.style.display=’none'” class=”w3-button w3-transparent w3-display-right”>&times;</span></li> </ul> </div> /* W3.CSS 4.15 December 2020 by Jan Egil and Borge Refsnes */ html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit} /* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */ html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0} article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}summary{display:list-item} audio,canvas,progress,video{display:inline-block}progress{vertical-align:baseline} audio:not([controls]){display:none;height:0}[hidden],template{display:none} a{background-color:transparent}a:active,a:hover{outline-width:0} abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted} b,strong{font-weight:bolder}dfn{font-style:italic}mark{background:#ff0;color:#000} small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline} sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px}img{border-style:none} code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}hr{box-sizing:content-box;height:0;overflow:visible} button,input,select,textarea,optgroup{font:inherit;margin:0}optgroup{font-weight:bold} button,input{overflow:visible}button,select{text-transform:none} button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button} button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0} button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText} fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em} legend{color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto} [type=checkbox],[type=radio]{padding:0} [type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto} [type=search]{-webkit-appearance:textfield;outline-offset:-2px} [type=search]::-webkit-search-decoration{-webkit-appearance:none} ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit} /* End extract */…

Read More

<!DOCTYPE html> <html> <head> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <style> .container { position: relative; text-align: center; color: white; } .bottom-left { position: absolute; bottom: 8px; left: 16px; } .top-left { position: absolute; top: 8px; left: 16px; } .top-right { position: absolute; top: 8px; right: 16px; } .bottom-right { position: absolute; bottom: 8px; right: 16px; } .centered { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } </style> </head> <body> <h2>Image Text</h2> <p>How to place text over an image:</p> <div class=”container”> <img src=”img_snow_wide.jpg” alt=”Snow” style=”width:100%;”> <div class=”bottom-left”>Bottom Left</div> <div class=”top-left”>Top Left</div> <div class=”top-right”>Top Right</div> <div class=”bottom-right”>Bottom Right</div> <div class=”centered”>Centered</div> </div> </body>…

Read More

[client] #password = your_password port = 3306 socket = /tmp/mysql.sock [mysqld] binlog_cache_size = 64K thread_stack = 256K join_buffer_size = 2048K max_heap_table_size = 384M port = 3306 socket = /tmp/mysql.sock datadir = /www/server/data default_storage_engine = InnoDB performance_schema_max_table_instances = 400 table_definition_cache = 400 skip-external-locking key_buffer_size = 256M max_allowed_packet = 100G table_open_cache = 192 sort_buffer_size = 768K net_buffer_length = 4K read_buffer_size = 768K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 16M thread_cache_size = 96 tmp_table_size = 384M default_authentication_plugin = mysql_native_password lower_case_table_names = 1 sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES explicit_defaults_for_timestamp = true #skip-name-resolve max_connections = 200 max_connect_errors = 100 open_files_limit = 65535 #log-bin=mysql-bin #binlog_format=mixed server-id = 1 binlog_expire_logs_seconds = 600000…

Read More

If you visit your-domain.com/wp-admin/admin.php?page=w3tc_install W3 Total Cache will show you all the additional configuration information that you need. Included in that information will be some Nginx configurations which I’ve also listed below. Copy and paste it into your WordPress installation’s Nginx server block (a.k.a VirtualHosts). # BEGIN W3TC Minify cache location ~ /wp-content/cache/minify.*\.js$ { types {} default_type application/x-javascript; add_header Vary “Accept-Encoding”; } location ~ /wp-content/cache/minify.*\.css$ { types {} default_type text/css; add_header Vary “Accept-Encoding”; } location ~ /wp-content/cache/minify.*js\.gzip$ { gzip off; types {} default_type application/x-javascript; add_header Vary “Accept-Encoding”; add_header Content-Encoding gzip; } location ~ /wp-content/cache/minify.*css\.gzip$ { gzip off; types {} default_type text/css; add_header…

Read More

If you are lucky enough to have attracted some traffic on your WordPress blog, you may find yourself stuck with an overloaded web server that gets bombarded from links on Google, Digg or Twitter. Tags: iis infrastructure seo wordpress Overview Prerequisites Installing the Plug-in Configuring URL Rewriting Enabling Caching in WordPress Activating the Plug-in Overview Sooner or later you will discover the WP Super Cache plug-in for WordPress, but perhaps you’re running it on IIS 7 instead of Apache, and support for that is somewhat limited. Luckily, a two year old blog post on IIS Blogs still appears to work…

Read More

Use the Windows Cache Extension for PHP Introduction The Windows Cache Extension for PHP is a PHP accelerator that is used to significantly increase the speed of PHP applications running on the Windows® operating system. Any PHP application can take advantage of the functionality provided by the Windows Cache Extension for PHP without any code modifications. All that is required is that the extension is enabled and loaded by the PHP engine. The Windows Cache Extension includes three different types of caches: PHP Opcode Cache PHP is a script processing engine that reads an input stream of data that…

Read More

by Eric Woersching Introduction WordPress is a blog publishing application and content management system. According to wordpress.org,WordPress is “a state-of-the-art semantic personal publishing platform with a focus on aesthetics, Web standards, and usability.” The following sections describe how to install and configure WordPress for use with FastCGI on Internet Information Services 7 (IIS 7) and above. This document assumes that you have completed the setup and configuration of the FastCGI extension and PHP libraries. The easiest way to install WordPress is by downloading it from the Windows® Web App Gallery. If you need the Microsoft® Web Platform, you can install…

Read More

This question already has an answer here: preg_match(): Compilation failed: invalid range in character class at offset 4 answers preg_match compilation failed: invalid range in character class [duplicate] 3 answers PHP 7.3 update – preg Compilation failed [duplicate] 1 answer I am using simple_html_dom.inc.php for url extractor. The codes are working normaly without problem. But i am getting the following Warning from PHP7.3 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in 1387 You can see the error line in this link: Error Line 1387 if (!preg_match(“/^[\w-:]+$/”, $tag)) { $node->_[HDOM_INFO_TEXT] = ‘<‘ . $tag . $this->copy_until(‘<>’); if ($this->char==='<‘) { $this->link_nodes($node, false); return true; }…

Read More

https://github.com/lifenglsf/php_memcached_dll php-memcached for windows php-memcached dependency libmemcached copy libmemcached.dll to c:\Windows install php-memcached copy php-memcached.dll to you php extension directory notice:Note the version of PHP and thread safety whether or not memcached_support: 3.1.4 name is_support SASL support no Session support yes igbinary support no json support yes msgpack support no 3.1.5 name is_support SASL support no Session support yes igbinary support yes json support yes msgpack support yes pre3.2.0 name is_support SASL support no Session support yes igbinary support yes json support yes msgpack support yes version>=3.15 basic support session and json igbinary support session and json and igbinary must…

Read More

Simply Static is a static site generator for WordPress that helps you create a static site that you can serve separately from your WordPress installation. This provides a couple benefits. One, this allows you to keep WordPress in a secure location that no one can access but you. Two, your static site is going to be really, really fast. SECURITY WordPress is used by one in four websites. That makes it a prime target for hackers. There are a lot of ways that your site can be compromised, but two-thirds of all hacks are caused by vulnerabilities in WordPress plugins, themes, and core files.…

Read More

A navigation bar is a map of a website. It could guide users in a clear and logical structure to get information in a quick way. While taking advantage of the navigation bar template is also a quick method on websites and apps building. When designing a website, you should always keep the prototyping tool in hand to start your easy navigation bar creating, and help the user find their way faster and better. Here are 30 best Bootstrap navbar templates, hoping to help you with quick and effective website building in 2020. 1. Bootstrap 4 Navbar with Icon Top Design with Mockplus…

Read More

https://codepen.io/moso/pen/LjvRep js <nav class=”navbar navbar-expand-md navbar-dark bg-dark navbar-offcanvas”> <div class=”container-fluid”> <a class=”navbar-brand” href=”#”>Navbar</a> <ul class=”navbar-nav navbar-top”> <li class=”nav-item active”> <a class=”nav-link” href=”#”>Home <span class=”sr-only”>(current)</span></a> </li> <li class=”nav-item”> <a class=”nav-link” href=”#”>Link</a> </li> <li class=”nav-item”> <a class=”nav-link disabled” href=”#”>Disabled</a> </li> <li class=”nav-item dropdown”> <a class=”nav-link dropdown-toggle” role=”button” href=”#!” id=”dropdownExample” data-toggle=”dropdown” aria-haspopup=”true” aria-expanded=”false”>Dropdown</a> <div class=”dropdown-menu dropdown-menu-right” aria-labelledby=”dropdownExample”> <a class=”dropdown-item” href=”#”>Action</a> <a class=”dropdown-item” href=”#”>Another action</a> <a class=”dropdown-item” href=”#”>Something else here</a> </div> </li> </ul> <button class=”navbar-toggler navbar-toggler-right navbar-icon” type=”button” data-toggle=”collapse” data-target=”#navbar-mobile” aria-controls=”navbar-mobile” aria-expanded=”false” aria-label=”Toggle navigation”> <span class=”icon-bar bar1″></span> <span class=”icon-bar bar2″></span> <span class=”icon-bar bar3″></span> </button> <div class=”navbar-collapse collapse ml-auto” id=”navbar-mobile”> <ul class=”navbar-nav ml-auto”> <li…

Read More

https://github.com/fitodac/bsnav bsnav Bsnav adds features to the Bootstrap 4 navbar element. See the demo How to use it To start using it, include the css and js files. Just add a link to the css file in your <head>: <link rel=”stylesheet” type=”text/css” href=”https://cdn.jsdelivr.net/gh/fitodac/bsnav@master/dist/bsnav.min.css”> Then, before your closing <body> tag add: <script src=”https://cdn.jsdelivr.net/gh/fitodac/bsnav@master/dist/bsnav.min.js”></script> Where you want to show the menu, you must include the following code: <div class=”navbar navbar-expand-lg bsnav bsnav-light”> <a class=”navbar-brand” href=”#”>bsnav</a> <button class=”navbar-toggler toggler-spring”><span class=”navbar-toggler-icon”></span></button> <div class=”collapse navbar-collapse justify-content-md-end”> <ul class=”navbar-nav navbar-mobile mr-0″> <li class=”nav-item active”><a class=”nav-link” href=”#”>Home</a></li> <li class=”nav-item”><a class=”nav-link” href=”#”>About Us</a></li> <li class=”nav-item”><a class=”nav-link” href=”#”>Gallery</a></li> <li class=”nav-item”><a class=”nav-link” href=”#”>Contact</a></li>…

Read More

https://github.com/fontenele/bootstrap-navbar-dropdowns Support for bootstrap 3, 4 and 5 Installation Node npm install boostrap-navbar-dropdowns or yarn add boostrap-navbar-dropdowns Using CDN <link href=”https://cdn.jsdelivr.net/gh/fontenele/[email protected]/dist/css/bootstrap-navbar-dropdowns.min.css”rel=”stylesheet”> <script src=”https://cdn.jsdelivr.net/gh/fontenele/[email protected]/dist/js/bootstrap-navbar-dropdowns.min.js”></script> Usage $(‘.navbar’).navbarDropdown({ theme: ‘bs5’, trigger: ‘mouseover’ }); Options Name Type Description theme string Bootstrap theme. Valid values are bs3, bs4 or bs5 trigger string Event for show dropdown content. Valid values are all DOM Events. Examples Bootstrap 3 Example CodePen Bootstrap 4 Example CodePen Bootstrap 5 Example CodePen Creators Guilherme Fontenele https://github.com/fontenele Bootstrap resoures Copyright and license Copyright Guilherme Fontenele, 2014–2020. Licensed under the MIT License.

Read More

Apache is not known for its speed. On the contrary, Apache has garnered a reputation for being rather bloated and performing well under high traffic. However, Apache is still the most popular web server around the world and is used by many hosting companies due to its familiarity and htaccess. If you still love Apache for some reason and want to speed up your WordPress site you can put an nginx reverse proxy caching solution in front of Apache to give your users a faster experience. nginx reverse proxy cache works by sitting in front of Apache. nginx listens on…

Read More

add in http  {} proxy_cache_path D:/nginx-1.18.0/cache levels=1:2 keys_zone=cache_one:500m inactive=1d max_size=30g; proxy_cache_key “$host$request_uri$cookie_user”; server {} config server { listen 80; server_name vpseo.com www.vpseo.com; proxy_redirect off; server_name_in_redirect off; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; location / { proxy_cache cache_one; proxy_cache_valid 200 304 302 6s; proxy_pass http://127.0.0.1:81; #Fine‑Tuning the Cache and Improving Performance #https://www.nginx.com/blog/nginx-caching-guide/ proxy_cache_revalidate on; proxy_cache_min_uses 3; proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; proxy_cache_background_update on; proxy_cache_lock on; proxy_hide_header Cache-Control; proxy_hide_header Set-Cookie; proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie; } } Delivering Cached Content When the Origin is Down A powerful feature of…

Read More

CDN webp support lazyload cache – optimize remove unwanted plugin, css ,js 1.cdn cloudflare bunnycdn keycdn 2.webp support on the fly CDN: cloudflare ,bunnycdn etc. pagespeed. 3. lazyload lazysizes , responsive lazy load 4.cache – optimize wprocket fastcgi-cache memcached Varnish SG-optimizer litespeed-cache redis w3 total cache 5.remove unwanted plugin, css ,js asset cleanup

Read More

nginx rewrite rule on nginx #disallow path or file location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) { return 404; } #一键申请SSL证书验证目录相关设置 location ~ \.well-known{ allow all; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; error_log /dev/null; access_log off; } location ~ .*\.(js|css)?$ { expires 12h; error_log /dev/null; access_log off; } # SEO URL Settings # Nginx configuration of OC htaccess location = /sitemap.xml { rewrite ^(.*)$ /index.php?route=feed/google_sitemap break; } location = /googlebase.xml { rewrite ^(.*)$ /index.php?route=feed/google_base break; } location / { # This try_files directive is used to enable SEO-friendly URLs for OpenCart try_files $uri $uri/ @opencart; } location @opencart { rewrite ^/(.+)$ /index.php?_route_=$1 last;…

Read More