server = require('koa-static'),
app.use(server(__dirname + '/public'));
<!DOCTYPE html><html><head><title>Авторизация</title></head><body><div id="content"></div><sctipt type="text/javascript" src="/client/bundle.js"></sctipt></body></html>
<!DOCTYPE html><html><head><title>Авторизация</title></head><body></body></html><div id="content"></div><sctipt type="text/javascript" src="/client/bundle.js"></sctipt>
--> GET / 200 14ms 179b
<-- GET /client/bundle.js
--> GET /client/bundle.js 200 36ms 709.66kb
include layout
sctipt(type='text/babel' src='/client/bundle.js')
#content
<sctipt type="text/javascript" src="/client/bundle.js"></sctipt>
server {
listen 80;
# Путь по которому будет ссылаться домен pma.loc (должен быть указан в ho$
root /usr/share/phpmyadmin;
index index.php index.html index.htm;
location /phpmyadmin {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
server {
listen 80;
charset utf-8;
server_name localhost;
root /usr/share/phpmyadmin;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include /etc/nginx/snippets/fastcgi-php.conf;
# этого фала нет я и не добавил его
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
ruslan@debian:~$ sudo mysql -v
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 44
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Reading history-file /root/.mysql_history
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
location ~*\.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)${
root /var/www/html
}
как я понял не считает что скобка открыта, нужно через пробел его делать, добишь вот такlocation ~*\.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
root /var/www/html
}