webserver intranet

  • Creatore Discussione Creatore Discussione max1974
  • Data di inizio Data di inizio

max1974

Utente Attivo
7 Mar 2013
107
0
16
Salve ragazzi, sono riuscito a configurare il mio webserver con apache e mysql.
ora tutto funziona perfettamente agli indirizzi:
127.0.0.1:81/login.html
192.168.1.1:81/login.html
nomemacchina:81/login.html
trovo il mio sito.
Ora se possibile vorrei che il mio sito risponda anche a
pippo/login.html
o
pippo.it/login.html

NB: non posso cambiare il nome macchina ed il pc lavora solo in intranet, non accessibile da esterno.
 
esiste il file "hosts"
che si trova nel percorso windows "C:\Windows\System32\drivers\etc" o simile per x64,
ed in "linux" nella stessa directory "etc" (il percorso non lo ricordo)

modificando il file "hosts" puoi inserire la corrispondenza tra indirizzo IP ed il nome
Codice:
# 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
 
Grazie lo avevo già fatto questo scrivendo in hosts
127.0.0.1 pippo.it www.pippo.it
192.168.1.1 pippo.it www.pippo.it
ma quando chiamo "pippo.it" non funziona mi da il seguente errore:
Network Access Message: The website cannot be found
Explanation: The IP address for the website you requested could not be found.

Try the following:
  • Refresh page: Search for the page again by clicking the Refresh button. The timeout may have occurred due to Internet congestion.
  • Check spelling: Check that you typed the Web page address correctly. The address may have been mistyped.
  • Access from a link: If there is a link to the page you are looking for, try accessing the page from that link.
If you are still not able to view the requested page, try contacting your administrator or Helpdesk.

Technical Information (for support personnel)
  • Error Code 11001: Host not found
  • Background: This error indicates that the gateway could not find the IP address of the website you are trying to access. This is usually due to a DNS-related error.
  • Date: 01/10/2019 12:42:23 [GMT]
  • Server: xxxxxxxxxxx.xx.xx
  • Source: DNS error
 

Discussioni simili