Hola lista instale nginx xon php-fpm y configure varios virtualhost el problema es que de 3 virtualhost que tengo solo puedo acceder a 2 de ellos el 3ro simplemente me abre uno de los otros, esta es mi configuracion, que puede estar faltandome?

nginx.conf

user www-data;
worker_processes 1;
pid /var/run/nginx.pid;

events {
        worker_connections 768;
        # multi_accept on;
}

http {

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        server_tokens off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        gzip on;
        gzip_disable "msie6";

gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
        
        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}

sites-enable/webs

server {
  server_name site1.dominio.cu;
  root /home/webs/site1;
  access_log /var/log/nginx/site1.access.log;
  error_log /var/log/nginx/site1.error.log;
  include global/common.conf;
  include global/wordpress.conf;
}
server {
  server_name site2.dominio.cu;
  root /home/webs/site2;
  access_log /var/log/nginx/site2.access.log;
  error_log /var/log/nginx/site2.error.log;
  include global/common.conf;
  include global/wordpress.conf;
}
server {
  server_name site3.dominio.cu;
  root /home/webs/site3;
  access_log /var/log/nginx/site3.access.log;
  error_log /var/log/nginx/site3.error.log;
  include global/common.conf;
  include global/wordpress.conf;
}

global/common.conf

listen 80;

index index.php index.html index.htm;

location = /favicon.ico {
  log_not_found off;
  access_log off;
}

location = /robots.txt {
  allow all;
  log_not_found off;
  access_log off;
}

error_page 404 /404.php;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
  root /usr/share/nginx/www;
}

location ~ /\. {
  deny all;
}

location ~* ^.+\.(js|css|swf|xml|txt|ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
  access_log off; log_not_found off; expires 30d;
}

global/wordpress.conf

location / {
  try_files $uri $uri/ /index.php?q=$uri&$args;
}

location ~* /(?:uploads|files)/.*\.php$ {
 allow 127.0.0.1;
 deny all;
}

location ~ \.php$ {
   try_files $uri =404;

  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass unix:/var/run/php5-fpm.sock;
  fastcgi_index index.php;
  include fastcgi_params;
}

rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;




______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l

Responder a