This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
sermn_wiki:userpages:marta:servidor_web [2011/04/26 17:55] miquel |
sermn_wiki:userpages:marta:servidor_web [2012/10/24 15:33] (current) miquel [Antic servidor web a rmn3] |
||
|---|---|---|---|
| Line 79: | Line 79: | ||
| dns-search sermn.net | dns-search sermn.net | ||
| </ | </ | ||
| + | |||
| + | ==== Configuració de les interfícies de xarxa ==== | ||
| + | |||
| + | Aquesta és la configuració de les interfícies de xarxa que obtenim amb els fitxers de configuració de més amunt, | ||
| + | |||
| + | < | ||
| + | # / | ||
| + | Kernel Interface table | ||
| + | eth0 Link encap: | ||
| + | inet addr: | ||
| + | inet6 addr: fe80:: | ||
| + | UP BROADCAST RUNNING MULTICAST | ||
| + | RX packets: | ||
| + | TX packets: | ||
| + | collisions: | ||
| + | RX bytes: | ||
| + | Interrupt: | ||
| + | |||
| + | eth0: | ||
| + | inet addr: | ||
| + | UP BROADCAST RUNNING MULTICAST | ||
| + | Interrupt: | ||
| + | |||
| + | lo Link encap:Local Loopback | ||
| + | inet addr: | ||
| + | inet6 addr: ::1/128 Scope:Host | ||
| + | UP LOOPBACK RUNNING | ||
| + | RX packets: | ||
| + | TX packets: | ||
| + | collisions: | ||
| + | RX bytes: | ||
| + | </ | ||
| + | |||
| + | ==== Taula de rutes ==== | ||
| + | |||
| + | Aquesta és la taula de rutes que obtenim amb els fitxers de configuració de més amunt, | ||
| + | |||
| + | < | ||
| + | # / | ||
| + | Kernel IP routing table | ||
| + | Destination | ||
| + | 192.168.2.0 | ||
| + | 0.0.0.0 | ||
| + | </ | ||
| + | |||
| ===== Actualitzant a Apache 2 ===== | ===== Actualitzant a Apache 2 ===== | ||
| Line 170: | Line 215: | ||
| * [[.: | * [[.: | ||
| + | |||
| + | He modificat la configuració del servidor web per tal que les peticions a " | ||
| + | |||
| + | Per això, seguint les instruccions a, | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | he afegit les següents instruccions, | ||
| + | |||
| + | <code http> | ||
| + | NameVirtualHost 192.168.2.2: | ||
| + | |||
| + | < | ||
| + | ServerAdmin webmaster@localhost | ||
| + | |||
| + | ServerName rmn3.uab.cat | ||
| + | ServerAlias rmn3.uab.es | ||
| + | ServerAlias rmn3 | ||
| + | |||
| + | Redirect 301 / http:// | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ServerAdmin webmaster@localhost | ||
| + | |||
| + | # ServerName sermnserver.sermn.net | ||
| + | # ServerAlias sermnserver | ||
| + | |||
| + | ServerName sermn.uab.cat | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | al fitxer // | ||
| + | |||
| + | | {{: | ||
| + | |||
| + | Alternativament, | ||
| + | |||
| + | <code http> | ||
| + | HTTP/1.1 301 Moved Permanently => | ||
| + | Date => Wed, 24 Oct 2012 13:20:01 GMT | ||
| + | Server => Apache/ | ||
| + | Location => http:// | ||
| + | Vary => Accept-Encoding | ||
| + | Content-Length => 307 | ||
| + | Connection => close | ||
| + | Content-Type => text/html; charset=iso-8859-1 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Comprovar el rànquing ===== | ||
| + | |||
| + | Per comprovar el rànquing del lloc web es poden fer servir les //Webmaster tools// a Google o altres serveis com, | ||
| + | * [[http:// | ||
| + | |||