Vous êtes sur la page 1sur 2

ACTUALIZAMOS EL SISTEMA

yum update
EXPORTAMOS LA SALIDA DEL PROXY
export http_proxy=http://10.1.3.2:8080
DESCARGAMOS LOS REPOSITORIOS
# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-70.el7.ngx.noarch.rpm
INSTALAMOS REPOSITORIOS
rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-70.el7.ngx.noarch.rpm
INSTALACION DE NGINX
yum -y install nginx
CARPETA DE NGINX INSTALADO
cat /etc/nginx/nginx.conf verificar
vi /etc/nginx/nginx.conf modificamos
ENTRAR A SELINUX Y CAMBIAR A permissive
cat /etc/sysconfig/selinux .....ver
vi /etc/sysconfig/selinux ......digitar
selinux: permissive, enforcing, disabled
ACTIVAMOS FIREWALL para HTTP E HTTPS
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
REINICIO DE FIREWALL
firewall-cmd --reload
INICIAMOS EL SERVIDOR
# systemctl restart nginx.service
VERIFICAMOS EL SERVIDOR NGINX
/usr/share/nginx/html;
index.html index.htm;
CREAR EL CERTIFICADO SSL
http://www.server-world.info/en/note?os=CentOS_6&p=ssl
MODIFICAR EL ARCHIVO DE CONFIGURACIN default.conf PARA SSL
http://www.server-world.info/en/note?os=CentOS_6&p=nginx&f=4
SERVER BLOCK
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-on-centos-7
DIRECTORIO VIRTUAL EN APACHE
http://www.desarrolloweb.com/articulos/1152.php

DIRECTORIO VIRTUAL EN NGINX


http://stackoverflow.com/questions/21399789/nginx-how-to-create-an-alias-url-route
http://mailman.nginx.org/pipermail/nginx/2010-March/019607.html
http://wiki.nginx.org/NginxHttpCoreModule#alias

user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid
/var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include
/etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile
on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
publicar un sitio web
http://blog.manuelviera.es/nginx-como-proxy-http/

Vous aimerez peut-être aussi