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
1
vote
1 answer

Domain forwarding or masking on local machine only?

I'm sad to have to ask this question, but I'm not even sure of what to call what I'm trying to do, so Google isn't much help. I'm doing some work on a company website from outside the company's network. Some of the assets on the site are loaded…
Fo.
  • 176
  • 8
1
vote
1 answer

Set up multiple servers behind a NAT

I am currently trying to set up a network with both a secure webserver and an internal openvpn server. The webserver is running windows 2008 and the vpn network is running the Access server from OpenVPN. The problem that i'm having is that I want…
bkrupa
  • 121
  • 7
1
vote
1 answer

Would I have a performance gain if I list entries in my hosts file to domains that are pointing to the server machine?

I must admit, I'm a software engineer and this stuff is not really one of my areas of expertise. I have a Web Application in .NET 4 which connects to various web services hosted on the same machine. We call these web services using publicly…
1
vote
2 answers

How can I set up my Linux (CentOS) box to respond to *.centos?

I have a dev box that runs Apache for lots of different sites. We currently access these through http://centos/project-name. I'd like to switch to http://project-name.centos. I've set up virtual hosts on Apache so http://project1.centos serves the…
dave1010
  • 113
  • 3
1
vote
2 answers

Is it possible to point 2 virtual hosts with different domains and unique IP addresses to the same folder?

is it possible to point 2 virtual hosts with different domains and unique ip addresses to the same folder? If so should I be aware of anything? Also is it possible for each of those domains to have SSL certificates even though the are pointing to…
Darren
  • 997
  • 2
  • 8
  • 15
1
vote
1 answer

localhost won't load after adding directives to httpd on WAMP Apache 2.2xx

I am not very experienced with configuring httpd, and I am following a tutorial to view my site w/ domain name under localhost. My localhost just blanks out and my apache services won't restart. I checked all of my paths and they are correct. I am…
OldWest
  • 141
  • 1
  • 7
1
vote
1 answer

Hosts file name lookups not working

My x64 windows 2003 box is not resolving names in the hosts file in system32\drivers\etc. I have been testing with nslookup with no luck. There was not a syswow64\drivers\etc\hosts so I created one and entered the same hosts also with no luck. …
Dave
  • 317
  • 4
  • 14
1
vote
1 answer

VMWare fusion NAT + host tunnel; access from vm

I'm having trouble accessing a port on my OSX host from a vm. I'm using NAT in VMware fusion. In my (OSX host) hosts file, I have the ip address for vmnet8 mapped to 'mac'. From my vm, I can 'ssh user@mac' and it works as expected: I am logged into…
rattigan
  • 21
  • 2
1
vote
3 answers

Running Tomcat on an Apache Alias Or Map Port numbers to Hostnames

I have WAMP installed with Apache at port 80 and Tomcat installed at port 8080. So, I access my php projects from localhost/ and java projects at localhost:8080/ Can I install or map Tomcat to a better address like localhost/java/ or betterstill a…
abel
  • 137
  • 1
  • 8
1
vote
1 answer

IP-Based Virtual Hosts Lighttpd

I have multiple IP's and I would like to route each one to its own directory. This is what I have so far.. $SERVER["socket"] == "XXX.XXX.XXX.XXX:81" { server.document-root = "/var/www/XXX.XXX.XXX.XXX " } While this works, It only works on port 81…
SyntaxMan
1
vote
1 answer

Flexible/variable/wildcard vhosts/hosts

I am using wamp, have all my projects in E:\webs\*projectname*\htdocs I want to access all of them in my browser with http://*projectname*.loc is there a way i can set up hosts and vhosts files so i never have to open them again? note this is for…
Moak
  • 734
  • 3
  • 10
  • 31
1
vote
3 answers

/etc/hosts file setting for no dns lookup

Can you explain me what I need to add in my hosts file for no dns look up
vinayrks
  • 157
  • 1
  • 8
1
vote
2 answers

Shorten Long DNS names

Amazon gives us a very long dns names i.e. c-123-123-123-255.compute-1.amazonaws.com Is there a way to map this name into a shorter name i.e. essentially what i want to do is to modify /etc/hosts file, and map the long name into a short one,…
Lydon Ch
  • 277
  • 1
  • 2
  • 12
1
vote
3 answers

Set initial path for a SSH config host

What would I have to add to a SSH hosts entry in my config file so that everytime I ssh into that host, I get sent to specific initial path? Host foobar HostName foobar.com User foobar
Jose Fernandez
  • 165
  • 1
  • 2
  • 6
1
vote
1 answer

How to give alternate name to localhost for sharing on windows?

I have a jenkins production job which involves multiple nodes/slaves and when we run the job it utilizes them based on the slave mentioned. And also, it has access to some machines shared folders.So from master, it is trying to access shared folders…
Sara June
  • 451
  • 1
  • 9
  • 28