Questions tagged [hosts]

/etc/hosts is the configuration file with locally known mappings between domain name and ip address.

/etc/hosts is the configuration file with locally known mappings between domain name and ip address. It can be used to define new or override existing mapping, bypassing the DNS that would normally resolve it.

271 questions
0
votes
1 answer

Hosts file doesn't work with .com host names

My /etc/hosts file is configured as following: 127.0.0.1 localhost mysitea.local mysiteb.com www.mysiteb.com www.mysitea.local And I have my Apache virtual hosts setup accordingly: ServerName www.mysitea.local …
MRashid
  • 121
  • 1
  • 1
  • 5
0
votes
1 answer

warning: /etc/hosts.allow, line xx: host name/name mismatch

I've whitelisted my own domains in /etc/hosts.allow ALL: localhost, .domain.tld plus all of my IP adresses. I also have about 4k lines in /etc/hosts.deny. Everything works but I do not understand the warning I get from time to time, because not all…
Daniel W.
  • 1,609
  • 4
  • 26
  • 48
0
votes
5 answers

How to have a webserver resolve urls in php files?

Instead of having the client resolve URLS, I want to let my webserver do that. So ideally, I could turn this: into this: By putting an entry in my /etc/hosts file, or DNS magic,…
Lin
  • 2,909
  • 7
  • 27
  • 25
0
votes
1 answer

CentOS 5.8 why does my /etc/hosts file mess up after a reboot?

I'm running CentOS 5.8 (it's the Citrix XVA appliance provided on the website) but having an issue where every time I restart the server, the /etc/hosts file loses the IP address of the server...for instance, the way the host file should looks is…
cjones26
  • 276
  • 1
  • 6
  • 18
0
votes
1 answer

Can /etc/hosts.deny/allow be overridden?

I have security measures put in place to keep unwanted users out of my server. I've changed the SSH port, disabled root login, have a software firewall to block portscans, and have entries in hosts.deny and hosts.allow. I have various services…
Tar
  • 265
  • 4
  • 11
0
votes
1 answer

hosts file to create url alias

I'm using a Mac where I've located my webroot folder into a Dropbox sub folder. Everything works fine but I have a…
vitto
  • 115
  • 7
0
votes
2 answers

Configuring the hosts file to point to my server

I have a somewhat annoying problem in website development/deployment process; when I work locally on my server, the address of my program is localhost:8080/MYSERV/..., whereas when I deploy it, the address is www.mysite.com/... I want all the links…
vivri
  • 203
  • 2
  • 10
0
votes
1 answer

Windows redirect by port?

Possible Duplicate: Forward Incoming Traffic with Windows hosts file? In Windows you can redirect traffic from a host by using the hosts file. C:\Windows\System32\drivers\etc\hosts example 127.0.0.1 cp97384.edgefcs.net Is there a way to do this…
Zombo
  • 1
  • 1
  • 16
  • 20
0
votes
1 answer

Configure Apache Mass Virtual Hosts to different directories

Our server is running Apache on port 9000 (because IIS is at 80) and we have the following configuration (vhosts.conf) to access our sites: NameVirtualHost *:9000 UseCanonicalName Off ServerAlias %1.ourserver …
0
votes
1 answer

Redirect Addresses to localhost by Pattern on Mac OS X

I'm not even 100% sure how to ask this question. The answer might be out there, but I can't find it. So I've set up virtual hosts for my Mac and I do all my development locally on my computer. I have a vhost folder in my Sites folder, and I have a…
CWSpear
  • 143
  • 1
  • 7
0
votes
1 answer

How to get global ip for virtualbox guest os

I'm trying to setup ubuntu server in virtualbox. Host is Windows 7 x64 Guest is Ubuntu 11.10 x64 All I want to do is, to make this server accessible from internet. How can I do it? Please help.
Tural Ali
  • 119
  • 1
  • 10
0
votes
2 answers

Effects of mis-configured hosts file?

SSH and sudo were starting very slowly because /etc/hostname and /etc/hosts did not match. After adding a line for the hostname in the hosts file, the initial 2-4 second delay no longer occurs. At first I was surpised the mis-configured hosts file…
Leftium
  • 293
  • 2
  • 8
0
votes
1 answer

How can I configure Debian workstations to be able to use a name provided by HP Laserjet printer

I have a LaserJet printer connected to the network (2300DN), which I would like to access using the name you set up in the Jet Direct options. It works perfectly fine on WinXP machines, I couldn't configure it on Linux (using Debian). After…
Grzenio
  • 271
  • 2
  • 6
  • 16
0
votes
1 answer

Wildcard certificate with separate certificates for each host

We're using a wildcard certificate on several hosts, which right now means that we have to distribute the wildcard cert's private key to each machine, which is a security problem. On the other hand, buying a separate certificate for each new host is…
futlib
  • 111
  • 1
0
votes
2 answers

Create custom host file

I want to create a host file on a custom location (ex. /opt/app/hosts) with the same formatting as the /etc/hosts file. The reason for this is that I want to manually query a DNS server for a specific range of hosts and write those to my own custom…
Lhunar
  • 3
  • 2