This is a way to install and set up Nginx, MariaDB and PHP 8.1 (mode PHP-FPM), Certbot on Ubuntu 20.04.
$ sudo apt update
$ sudo apt install nginx -y
| (function (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |
| function removeVietnameseTones(str) { | |
| str = str.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a"); | |
| str = str.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e"); | |
| str = str.replace(/ì|í|ị|ỉ|ĩ/g,"i"); | |
| str = str.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"); | |
| str = str.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u"); | |
| str = str.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y"); | |
| str = str.replace(/đ/g,"d"); | |
| str = str.replace(/À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ/g, "A"); | |
| str = str.replace(/È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ/g, "E"); |
| <?php | |
| // Replace EMAIL/API_KEY/ZONE_ID with your details. | |
| // Zone ID is on the dashboard for the domain in the bottom right. | |
| // Api keys are generated from the account settings. You must give cache purge permissions | |
| // Place this script on your webserver and point a Github Webhook at it, and you'll clear | |
| // the Cloudflare cache every time you do a push to GH. | |
| try { | |
| $head = []; | |
| $head[] = 'Content-Type: application/json'; |
| //php | |
| if(isset($_FILES["upload"])){ | |
| $ext = ".".end((explode(".", $_FILES["upload"]["name"]))); | |
| $filename="test"; | |
| $file_public_addr =yourlocaladdr.$filename.$ext; | |
| $success=move_uploaded_file($_FILES["upload"]["tmp_name"],SYS_EXT.$file_public_addr); | |
| if( $success){ | |
| $json["uploaded"]=true; |
| Đơn giản chỉ cần thay inlayngay.vn thanh site của bạn sau đó đi share trên các forum về SEO |
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
| #!/bin/bash | |
| # @author: Seb Dangerfield | |
| # http://www.sebdangerfield.me.uk/?p=513 | |
| # Created: 11/08/2011 | |
| # Modified: 07/01/2012 | |
| # Modified: 17/05/2012 | |
| # Modify the following to match your system | |
| NGINX_CONFIG='/etc/nginx/sites-available' | |
| NGINX_SITES_ENABLED='/etc/nginx/sites-enabled' |
| <script type="application/ld+json"> | |
| { "@context": "https://schema.org", | |
| "@type": "Organization", | |
| "name": "Elite Strategies", | |
| "legalName" : "Elite Strategies Llc", | |
| "url": "http://www.elite-strategies.com", | |
| "logo": "http://cdn.elite-strategies.com/wp-content/uploads/2013/04/elitestrategies.png", | |
| "foundingDate": "2009", | |
| "founders": [ | |
| { |