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

Changing in hosts file

I have configured my website from VS2010 to use IIS 7.5. Then I added this line to my hosts file: 127.0.0.1 something.com This correctly goes to IIS 7.5 default screen However I want this to go to my website that is hosted in IIS 7.5. So I changed…
0
votes
5 answers

How can I keep my /etc/hosts file up to date with multiple ec2 instances

Have any of you come up with a good way to keep the /etc/hosts file on multiple EC2 instances up to date? Instances go down.. some new instances get created... and internal IPs change. How can I make sure the /etc/hosts file on all the servers is…
Z Jones
  • 121
  • 1
  • 3
0
votes
2 answers

Configuring Apache 2.2 on localhost, getting "It works!"

I am trying to get Apache work and here is my configuration: System32/hosts: 127.0.0.1 localhost 127.0.0.1 rss.local httpd-vhosts.conf NameVirtualHost *:80 ServerName rss.local DocumentRoot C:\Users\Jansu\workspace\rss …
Jaanus
  • 103
  • 4
0
votes
3 answers

Apache hosts; how to remove host name?

I have two domains that are redirected to my server IP. I removed (I think) all entires from /etc/apache/sites-available/* that was responsible for resolving those host names. Now when I'm trying to use this domains, they still redirects to this IP…
dreake
  • 3
  • 2
0
votes
1 answer

Adding virtual hosts without restarting Apache?

I've got Apache 2.28, on Web-Developer Server Suite, PHP 5.38, MySQL latest version, and have got about 5 virtualhosts. This is my latest virtual host, which was a dynamic one: UseCanonicalName Off NameVirtualHost *:80 ServerName…
avenas8808
  • 155
  • 8
0
votes
2 answers

Hosts file map localhost to existing domain not subdirectory* updated

I am locally developing a website via MAMP and rather than messing with the changing all of my links and etc later on I opened up etc/hosts and added this line 127.0.0.1 localhost mysite.com so that my site thinks it has the mysite.com domain…
ThomasReggi
  • 621
  • 2
  • 10
  • 25
0
votes
2 answers

Show development and test site with same domain on browser

I have a situation where domain.com (is the live server - A record points to this server). We have another domain.com (which is the test server - users manually set hosts file). Users would like to access the live and test sites simultaneously on…
ServerDown
  • 372
  • 1
  • 2
  • 9
0
votes
1 answer

hostname and hostname -f are backwards?

When I run the command hostname (on Ubuntu 10.04 LTS Server) it returns 'mail.mydomain.com' When I run hostname -f I get 'mail' as a response. These seem backwards to me, shouldn't hostname -f return the FQDN? Where did I misconfigure this?
Citricguy
  • 166
  • 1
  • 1
  • 9
0
votes
1 answer

Apache 2 Virtual Hosts no working on OSX 10.6

This is my first MacBook and I'm trying to get virtual hosts up and running so as it's going to be my dev machine. I've got apache/php/mysql running fine, the problem is that what ever address I go to I just get one of the virtual hosts I've setup.…
matt_lethargic
0
votes
3 answers

How to reload /etc/hosts file in AIX without reboot

How to reload /etc/hosts file in AIX without reboot? I am trying to ping a new entry but it still shows previous version. Thanks
Gok Demir
  • 273
  • 1
  • 3
  • 14
0
votes
1 answer

Forward Incoming Traffic with Windows hosts file?

A long time ago I found some guide that showed how to use the Windows Hosts file to forward incoming traffic to another local IP/Port. We setup a clients server on one IP/Port, and they wanted it changed to another IP/Port on the same machine, but…
Aidan Knight
  • 650
  • 3
  • 11
  • 19
0
votes
2 answers

.bat file question

I'm working on Windows XP. I need the batch file to do the following: Create a directory $DOMAINNAME on D:/Webserver/domains/%DOMAINNAME/www/ Open the file - D:/Webserver/apache2/conf/extra/httpd-vhosts.conf Append the following to that…
Kirill Firsov
  • 75
  • 1
  • 5
0
votes
1 answer

Service located on network

I've got a WCF web service that handles a portion of business logic and data access. This service is hosted on a server on our network at our office. Our website, hosted elsewhere, uses this service and believes it to be located at…
RobertMGlynn
  • 121
  • 2
0
votes
1 answer

Using BIND for virtual hosts?

I've created the following virtual hosts: ServerName testingsitehere.com ServerAlias www.testingsitehere.com DocumentRoot /www/vhosts/testingsitehere.com ErrorLog /www/Apache22/logs/error.log …
alcendft1
0
votes
3 answers

dns does not work from different drive letters

C:\>ping localhost Pinging Vextor [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 2, Received = 2, Lost = 0 (0%…
cesara
  • 103
  • 2