Foro de elhacker.net

Sistemas Operativos => GNU/Linux => Mensaje iniciado por: WIитX en 3 Enero 2015, 03:56 am



Título: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 3 Enero 2015, 03:56 am
Miren el problema es el siguiente, tengo un servidor Debian con nginx y quiero alojar 2 sitios webs con diferente url se que es con host virtuales, no se lo que me falta por modificar para poder alojar mi otro sitio web a ver si podeis ayudarme me estuve mirando esto pero nada: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3

a wintxcoders.com le modifique lo siguiente:

Código:
server {
        listen   80; ## listen for ipv4; this line is default and implied
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6

        root /var/nginx/html/wintxforo;
        index index.php index.html index.htm;

        # Make site accessible from http://localhost/
        server_name wintxcoders.com;
}

(http://i.imgur.com/lN492dF.png)


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 3 Enero 2015, 05:01 am
¿Y el problema que es exactamente? No hay una respuesta por parte del servidor, pero eso es porque las DNS parecen estar mal o no actualizadas. (wintxcoders.com)


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 3 Enero 2015, 15:12 pm
¿Y el problema que es exactamente? No hay una respuesta por parte del servidor, pero eso es porque las DNS parecen estar mal o no actualizadas. (wintxcoders.com)

No ahora mismo wintxcoders.com no lo estoy apuntando, me falta crear la ip o el virtual host que no se como hacerlo, ósea crear la ip virtual para poder apuntar el dominio.

Saludos! y gracias


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 3 Enero 2015, 15:59 pm
No ahora mismo wintxcoders.com no lo estoy apuntando, me falta crear la ip o el virtual host que no se como hacerlo, ósea crear la ip virtual para poder apuntar el dominio.

Saludos! y gracias

¿IP Virtual?

No estoy muy seguro de la configuracion, pero creo que deberia funcionar así. Yo pondría el server_name cerca del listen pero no creo que afecte.


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 3 Enero 2015, 16:40 pm
¿IP Virtual?

No estoy muy seguro de la configuracion, pero creo que deberia funcionar así. Yo pondría el server_name cerca del listen pero no creo que afecte.

A ver.

wintx.ovh lo tengo configurado con la ip del servidor lo tengo apuntando, si apunto wintxcoders.com a la ip del servidor se veria la misma web que en wintx.ovh ?

Yo tengo dos directorios dentro de html

/personal
/foro

En /personal quiero que valla wintx.ovh
En /foro quiero que valla wintxcoders.com

Saludos y gracias ^^


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 3 Enero 2015, 17:00 pm
A ver.

wintx.ovh lo tengo configurado con la ip del servidor lo tengo apuntando, si apunto wintxcoders.com a la ip del servidor se veria la misma web que en wintx.ovh ?

Yo tengo dos directorios dentro de html

/personal
/foro

En /personal quiero que valla wintx.ovh
En /foro quiero que valla wintxcoders.com

Saludos y gracias ^^

Si apuntas wintxcoders.com a la ip de wintx.ovh, nginx mira las cabeceras del request, ve que va para wintxcoders.com y aplica las reglas de ese virtualhost. No estoy seguro si el orden los hosts importa.


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 3 Enero 2015, 23:04 pm
Website is offline me salta, wintxcoders.com está apuntando al servidor en estos momentos y al hacerle ping me da respuesta y en el directorio /foro tengo creado un index.html para poder probar pero no lo muestra.

Saludos & Gracias


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 01:34 am
Website is offline me salta, wintxcoders.com está apuntando al servidor en estos momentos y al hacerle ping me da respuesta y en el directorio /foro tengo creado un index.html para poder probar pero no lo muestra.

Saludos & Gracias

A mi me contesta cloudflare, no tu host. Así que podria ser un problema con cloudflare. Por otro lado, hice un request a la ip de tu sitio con el host de wintxcoders.com y recibi la misma respuesta que de wintx.ovh asi que me imagino no esta bien configurado.

¿Tienes el sitio en sites enabled?

Código
  1. ls -la /etc/nginx/sites-enabled


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 01:55 am
(http://i.gyazo.com/bd1f9cd83e0c88d808d10b48020a7f95.png)

Esto me salta con el comando


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 02:22 am
Si eso es todo, tienes que agregar un link a el sitio en sites enabled.

Código
  1. ln -s /etc/nginx/sites-available/wintxcoders.com /etc/nginx/sites-enabled/wintxcoders.com

Y luego reinicias nginx:

Código
  1. sudo service nginx restart


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 02:44 am
Me salto un error

Código:
Restarting nginx: nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/wintxcoders.com:21
nginx: configuration file /etc/nginx/nginx.conf test failed


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 03:15 am
Muestra tu archivo de nginx y los dos archivos en sites-enabled.


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 03:37 am
(http://i.gyazo.com/bd1f9cd83e0c88d808d10b48020a7f95.png)


(http://i.gyazo.com/8b720354282216906177da6bcb380cbd.png)

Wintxcoders.com

http://i.gyazo.com/04f60f2aedbdf5ed33552e353efd780d.png

Código:
# You may add here your
# server {
#       ...
# }
# statements for each of your virtual hosts to this file

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /usr/share/nginx/www/foro;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name wintxcoders.com;
}

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

         location ~ \.php$ {
                 try_files $uri =404;
                 fastcgi_split_path_info ^(.+\.php)(/.+)$;
                 fastcgi_pass unix:/var/run/php5-fpm.sock;
                 fastcgi_index index.php;
                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                 include fastcgi_params;
         }

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ /index.html;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
        }

        location /doc/ {
                alias /usr/share/doc/;
                autoindex on;
                allow 127.0.0.1;
                allow ::1;
                deny all;
        }

        # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
        #location /RequestDenied {
        #       proxy_pass http://127.0.0.1:8080;
        #}

        #error_page 404 /404.html;

        # redirect server error pages to the static page /50x.html
        #
        #error_page 500 502 503 504 /50x.html;
        #       root /usr/share/nginx/www;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #       fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        #
        #       # With php5-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php5-fpm:
        #       fastcgi_pass unix:/var/run/php5-fpm.sock;
        #       fastcgi_index index.php;
        #       include fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #       deny all;
        #}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#       listen 8000;
#       listen somename:8080;
#       server_name somename alias another.alias;
#       root html;
#       index index.html index.htm;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}


# HTTPS server
#
#server {
#       listen 443;
#       server_name localhost;
#
#       root html;
#       index index.html index.htm;
#
#       ssl on;
#       ssl_certificate cert.pem;
#       ssl_certificate_key cert.key;
#
#       ssl_session_timeout 5m;
#
#       ssl_protocols SSLv3 TLSv1;
#       ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
#       ssl_prefer_server_ciphers on;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}

Default

http://i.gyazo.com/1ecbbda84d765a73b325701616757e0d.png

Código:
# You may add here your
# server {
#       ...
# }
# statements for each of your virtual hosts to this file

##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /usr/share/nginx/www/personal;
        index index.php index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;

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

         location ~ \.php$ {
                 try_files $uri =404;
                 fastcgi_split_path_info ^(.+\.php)(/.+)$;
                 fastcgi_pass unix:/var/run/php5-fpm.sock;
                 fastcgi_index index.php;
                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                 include fastcgi_params;
         }

        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ /index.html;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
        }

        location /doc/ {
                alias /usr/share/doc/;
                autoindex on;
                allow 127.0.0.1;
                allow ::1;
                deny all;
        }

        # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
        #location /RequestDenied {
        #       proxy_pass http://127.0.0.1:8080;
        #}

        #error_page 404 /404.html;

        # redirect server error pages to the static page /50x.html
        #
        #error_page 500 502 503 504 /50x.html;
        #location = /50x.html {
        #       root /usr/share/nginx/www;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #       fastcgi_split_path_info ^(.+\.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        #
        #       # With php5-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        #       # With php5-fpm:
        #       fastcgi_pass unix:/var/run/php5-fpm.sock;
        #       fastcgi_index index.php;
        #       include fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #       deny all;
        #}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#       listen 8000;
#       listen somename:8080;
#       server_name somename alias another.alias;
#       root html;
#       index index.html index.htm;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}


# HTTPS server
#
#server {
#       listen 443;
#       server_name localhost;
#
#       root html;
#       index index.html index.htm;
#
#       ssl on;
#       ssl_certificate cert.pem;
#       ssl_certificate_key cert.key;
#
#       ssl_session_timeout 5m;
#
#       ssl_protocols SSLv3 TLSv1;
#       ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
#       ssl_prefer_server_ciphers on;
#
#       location / {
#               try_files $uri $uri/ =404;
#       }
#}


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 03:42 am
Quita default_server en wintxcoders.com


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 03:49 am
Código:
server {
        listen 80 ;
        listen [::]:80 ipv6only=on;

        root /usr/share/nginx/www/foro;
        index index.html index.htm;


Así lo deje y sigue dando el mismo error

PD: También probe pegando el ; en el "80" así 80; y también así probe 80 ;


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 04:21 am
Prueba entonces a quitar el default_server en el archivo default. Seguro que se han guardado los cambios correctamente? Sigue saltando el mismo error en la misma línea?


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 04:25 am
Si lo cambio en el default me tira este error:

Código:
Restarting nginx: nginx: [emerg] host not found in "default_server" of the "listen" directive in /etc/nginx/sites-enabled/wintxcoders.com:21
nginx: configuration file /etc/nginx/nginx.conf test failed

Lo deje así:

Código:
server {
        listen 80 ;
        listen [::]:80 ipv6only=on;

        root /usr/share/nginx/www/personal;
        index index.php index.html index.htm;

        # Make site accessible from http://localhost/
        server_name localhost;

En wintxcoders en ver de default_server puse wintxcoders.com y me lanzaba este error

Código:
Restarting nginx: nginx: [emerg] invalid parameter "80" in /etc/nginx/sites-enabled/wintxcoders.com:21
nginx: configuration file /etc/nginx/nginx.conf test failed


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 04:54 am
Ok, parece que también tienes que quitar la línea de ipv6on de wintxcoders.com y regresa el default server al archivo default.


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 04:57 am
Código:
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/wintxcoders.com:33
nginx: configuration file /etc/nginx/nginx.conf test failed

y lo tengo

Código:
server {
        listen 80 ;
        listen [::]:80 ;

        root /usr/share/nginx/www/foro;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name wintxcoders.com;
}

Y el default lo tengo con default_server


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 05:11 am
No se si los espacios afecten antes del ";" prueba quitarlos, ese nno parece ser el archivo completo tampoco. sería bueno ver el archivo de conf de nginx.

Edit: Asegúrate de cerrar Server hasta el final del archivo. (en tu archivo de configuracion cierras tienes un } extra justo despues de server_name)


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 12:36 pm
Código:
server {
        listen 80;
        listen [::]:80;

        root /usr/share/nginx/www/foro;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name wintxcoders.com;
}

Está cerrado con {}

Y tira el error

Código:
Restarting nginx: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/sites-enabled/wintxcoders.com:33
nginx: configuration file /etc/nginx/nginx.conf test failed


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 17:17 pm
Como te dije en mi ultimo post, tienes un } de mas justo debajo de server_name. Ese } esta cerrando Server y esta dejando el resto de la configuracion "al aire", por eso te salta el error.


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 17:53 pm
Probe los ; separados del 80 y juntos también

Código:
Restarting nginx: nginx: [emerg] invalid port in "[::]:" of the "listen" directive in /etc/nginx/sites-enabled/wintxcoders.com:22
nginx: configuration file /etc/nginx/nginx.conf test failed

Código:
server {
        listen 80;
        listen [::]: 80;

        root /usr/share/nginx/www/foro;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name wintxcoders.com;


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 18:07 pm
Probe los ; separados del 80 y juntos también

Código:
Restarting nginx: nginx: [emerg] invalid port in "[::]:" of the "listen" directive in /etc/nginx/sites-enabled/wintxcoders.com:22
nginx: configuration file /etc/nginx/nginx.conf test failed

Código:
server {
        listen 80;
        listen [::]: 80;

        root /usr/share/nginx/www/foro;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name wintxcoders.com;

Prueba

Código
  1. listen [::1]:80;


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 18:56 pm
Funciono pero al entrar wintxcoders.com sigue diciendo que nada, le quito cloudflare y le pongo la ip del servidor en las DNS?


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 19:16 pm
Funciono pero al entrar wintxcoders.com sigue diciendo que nada, le quito cloudflare y le pongo la ip del servidor en las DNS?

No se como tengas configurado tu cloudflare. Tiene que haber un registro A para tu dominio que apunte a la ip del servidor (dentro de cloudflare) y desactiva el sistema por ahora, solo usa sus dns.

Edit: Me respondio tu server correctamente:

Código
  1. <!DOCTYPE html>
  2. <head>
  3. <title>
  4. prueba
  5. </title>
  6. </head>
  7. <body>
  8. <center>
  9. <h1>
  10. Prueba wintxcoders.com
  11. </h1>
  12. </body>
  13. </html>


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 19:24 pm
:O a mi no me responde será por mi internet entrare desde proxy para ver dios si es así muchas gracias tio!!


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 19:39 pm
:O a mi no me responde será por mi internet entrare desde proxy para ver dios si es así muchas gracias tio!!

No, el dominio de wintxcoders.com no esta aparcado correctamente. Yo estoy usando tu ip y enviando una cabecera Host para obtener la respuesta de nginx:

Imagen (http://www.zimagez.com/zimage/screenshot-01042015-123728pm.php)


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 20:07 pm
Sale la ip de cloudflare y le tengo puesta al ip de mi servidor en las DNS  :o


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 20:15 pm
Sale la ip de cloudflare y le tengo puesta al ip de mi servidor en las DNS  :o

¿Tienes el cloudflare desactivado?


Título: Re:
Publicado por: WIитX en 4 Enero 2015, 20:17 pm
Si las DNS apuntan al servidor quite las DNS de cloudflare


Título: Re:
Publicado por: MinusFour en 4 Enero 2015, 20:40 pm
Si las DNS apuntan al servidor quite las DNS de cloudflare

No creo que necesites quitar las DNS de cloudflare, solo desactivarlo para el registro en especifico.

https://support.cloudflare.com/hc/en-us/articles/200169176-How-do-I-temporarily-deactivate-CloudFlare-

Por cierto, no tendras alguna regla que impida el acceso de cloudflare?

Código
  1. sudo iptables -L


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 20:41 pm
Ya lo tengo pausado

(http://i.gyazo.com/096a788ac960d48f9411bd8d63d952b2.png)

PD: Si paso nmap a wintxcoders.com si que me da que usa nginx y tal.. puede que sea por el puerto que usan el mismo puerto?

- Si impidiera el acceso a cloudflare wintx.ovh no cargaria


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 20:47 pm
Pues a mi me sigue respondiendo que tienes la ip de cloudflare:

Código
  1. ;; ANSWER SECTION:
  2. wintxcoders.com. 300 IN A 104.28.19.10
  3. wintxcoders.com. 300 IN A 104.28.18.10

Esa no es la ip de tu servidor por cierto (solo por si le pusiste esa ip)...


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 20:49 pm
Pues a mi me sigue respondiendo que tienes la ip de cloudflare:

Código
  1. ;; ANSWER SECTION:
  2. wintxcoders.com. 300 IN A 104.28.19.10
  3. wintxcoders.com. 300 IN A 104.28.18.10

Esa no es la ip de tu servidor por cierto (solo por si le pusiste esa ip)...


Esa ip es la que me da Cloudflare pero le tengo cloudflare desactivado, le pongo en las DNS la ip de mi servidor?

Puede que tenga que modificar el archivo hosts de mi Debian?


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 20:55 pm
Esa ip es la que me da Cloudflare pero le tengo cloudflare desactivado, le pongo en las DNS la ip de mi servidor?

Puede que tenga que modificar el archivo hosts de mi Debian?

En las dns de cloudflare tienes que tener la ip de tu servidor el de ovh. (hazle ping al subdominio de ovh).


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 20:58 pm
Así tengo las DNS

@Editado


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: MinusFour en 4 Enero 2015, 21:10 pm
Entonces quizas tarde en propagar los cambios, lo cual se me hace raro.

Le hago un query directamente al name server y me sigue respondiendo la ip de cloudflare. Prueba a resumir cloudflare, pero desactiva cloudflare solo para ese registro de wintxcoders.com (la nube la pones en gris).

Siento que hay algo en tu server que esta bloqueando la peticion de cloudflare pero primero es cuestion de probar si no es cosa de las DNS de cloudflare.

Este es el dig del nameserver:

Código
  1. ; <<>> DiG 9.9.2-P2 <<>> @nina.ns.cloudflare.com wintxcoders.com
  2. ; (2 servers found)
  3. ;; global options: +cmd
  4. ;; Got answer:
  5. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24600
  6. ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
  7. ;; WARNING: recursion requested but not available
  8.  
  9. ;; OPT PSEUDOSECTION:
  10. ; EDNS: version: 0, flags:; udp: 512
  11. ;; QUESTION SECTION:
  12. ;wintxcoders.com. IN A
  13.  
  14. ;; ANSWER SECTION:
  15. wintxcoders.com. 300 IN A 104.28.18.10
  16. wintxcoders.com. 300 IN A 104.28.19.10
  17.  
  18. ;; Query time: 337 msec
  19. ;; SERVER: 173.245.58.136#53(173.245.58.136)
  20. ;; WHEN: Sun Jan  4 14:10:12 2015
  21. ;; MSG SIZE  rcvd: 76
  22.  


Título: Re: Alojar más de 1 sitio web con diferente url en servidor Debian
Publicado por: WIитX en 4 Enero 2015, 21:13 pm
Ya puse la nube gris