Como fazer o host virtual Nginx funcionar? (página não encontrada)

2

Executando o Ubuntu 13.10 no VirtualBox.

Eu coloquei meu site nesta pasta:

Ecriouapastadelogem/srv/www/streamsy.com/logs/.

Eufizestespassos:

sudoapt-getinstallnginxsudochown-Rwww-data:www-data/srv/www/streamsy.com/public_htmlsudochmod755/srv/www

Osarquivosdeconfiguraçãosãoassim:

/etc/nginx/sites-available/streamsy.com:

server{listen80;server_namestreamsy.com;access_log/srv/www/streamsy.com/logs/access.log;error_log/srv/www/streamsy.com/logs/error.log;location/{root/srv/www/streamsy.com/public_html/;indexindex.html;}}

/etc/nginx/nginx.conf:

userwww-data;worker_processes4;pid/run/nginx.pid;events{worker_connections768;}http{sendfileon;tcp_nopushon;tcp_nodelayon;keepalive_timeout65;types_hash_max_size2048;include/etc/nginx/mime.types;default_typeapplication/octet-stream;access_log/var/log/nginx/access.log;error_log/var/log/nginx/error.log;gzipon;gzip_disable"msie6";


  include /etc/nginx/conf.d/*.conf;
  include /etc/nginx/sites-enabled/streamsy.com;
}

Eu ativei o arquivo streamsy.com com:

sudo ln -s /etc/nginx/sites-available/streamsy.com /etc/nginx/sites-enabled/streamsy.com

Editado / etc / hosts, mas com ip real em vez de x:

 127.0.0.1       localhost
 127.0.1.1       lalle-VM
 217.72.x.x streamsy.com

Reiniciando:

sudo service nginx restart

* Restarting nginx nginx                                                [ OK ]

Resultado:

Nenhum erro em /var/log/nginx/error.log

Alguém tem alguma ideia do que estou fazendo errado? Eu quero ser capaz de acessar meu servidor nginx remotamente no meu IP público. Obrigado.

    
por user2010496 27.02.2014 / 14:59

1 resposta

1

Resolvido abrindo a porta 80 no roteador.

    
por 28.02.2014 / 17:41
yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Core Warning – yii\base\ErrorException

PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory))

$_GET = [
    'id' => '377296',
    'url' => 'how-to-make-nginx-virtual-host-work-page-not-found',
];

$_COOKIE = [
    '_csrf-frontend' => '69e17636b55773824d4108eb2301d7dceff710e58946199ccb8bc1425e5f6fcea:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"Cfey4HOiQpjFpm8ZTLtbJxJnIrcLmP7Y";}',
    'advanced-frontend' => 'e5aqugbbno8b99q3oap3i2mg86',
];

$_SESSION = [
    '__flash' => [],
];