host NO hosts.txt
a la carpeta etc/host, he de crear un host.local que apunti a 192.168.1.49 per que funcioni la web http://syn_sec.local/polidic dins de web station de synology
Sí, pots configurar un nom de domini local per accedir a la teva web en Synology Web Station. Els passos generals són:
- Editar el fitxer
hosts
del teu dispositiu- Si fas servir Windows, obre un editor de text com a administrador i edita el fitxer
C:\Windows\System32\drivers\etc\hosts
. - Si fas servir macOS o Linux, edita
/etc/hosts
amb permisos d’administrador (sudo nano /etc/hosts
).
- Si fas servir Windows, obre un editor de text com a administrador i edita el fitxer
- Afegir una entrada al fitxer Afegeix una línia com aquesta:
192.168.1.49 syn_sec.local
- Configurar Web Station en Synology A Web Station, assegura’t que has definit
com a nom d’amfitrió associat a la web. Veig que en la teva configuració ja tenssyn_sec.local
registrat amb ports 80 i 443, així que sembla que vas en la direcció correcta.syn_sec.local
- Comprovar que funcioni Guarda els canvis i prova d’accedir a
http://
des del teu navegador.
/polidicsyn_sec.local

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
192.168.1.41 valldoreix_etc.host
192.168.1.49 englishnote.host # english_note
192.168.1.49 beseit.host # beseit
192.168.1.49 bank.host # bank
192.168.1.49 englishgrammar.host # english_gram
192.168.1.49 polidic.host # 0capsa_dic