- First, update your existing list of packages:
sudo apt update
- Next, install a few prerequisite packages which let apt use packages over HTTPS:
server { | |
listen 80; | |
#server_name example.com; | |
location / { | |
proxy_pass http://127.0.0.1:3000; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; |
<?php | |
class ResizeImage { | |
var $image; | |
var $image_type; | |
static function makeDir($path) { | |
return is_dir($path) || mkdir($path, 0777, true); | |
} | |
function load($filename) { | |
$image_info = getimagesize($filename); |
<?php | |
class Task extends Threaded | |
{ | |
public $response; | |
public function scraping() | |
{ | |
$content = file_get_contents('https://www.amazon.com'); | |
preg_match('~<title>(.+)</title>~', $content, $matches); |
Magento has the solution by default but the project should is in the root but if your project is in a sub-folder then you will have a problem recognizing the code new websites.
For Apache the solution is an index.php and .htaccess but if you using Nginx then follow the next steps:
After the installation you could have an error 404 at requirejs-config.js
For the solution follow next steps:
if ($MAGE_MODE = "production") {
expires max;
}