SELECT `post_id` FROM `posts` WHERE `author_id` IN (:id1, :id2, :id3)
SELECT `p1`.`post_id`
FROM `posts` AS `p1`
JOIN `posts` AS `p2`
ON `p2`.`post_id` = `p1`.`post_id` AND `p2`.`author_id` = :id2
JOIN `posts` AS `p3`
ON `p3`.`post_id` = `p1`.`post_id` AND `p3`.`author_id` = :id3
WHERE `p1`.`author_id` = :id1
var app = require('express')();
var listener = app.listen(8888, function(){
console.log('Listening on port ' + listener.address().port); //Listening on port 8888
});
Если нет, то: https://nodejs.org/api/http.html#http_server_liste... RewriteEngine on
RewriteBase /
RedirectMatch 403 /\..*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !.html$
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/libs # <-------
RewriteRule (.+) $1/ [R=301,L]
RewriteCond %{REQUEST_URI} !^/libs # <-------
RewriteRule . index.php
RewriteCond %{HTTP_HOST} ^www.site.ru$ [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]