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

learn more… | top users | synonyms

0
votes
2answers
445 views

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 <Virtualhost *:80> ...
0
votes
3answers
576 views

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 ...
0
votes
1answer
1k views

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 ...
3
votes
2answers
227 views

Is it good to define localhost as 127.0.0.1 in your hosts file?

I just came across a server that does not respond to things like ping localhost or mysql -h localhost - I believe this is because localhost is not defined in the hosts file. On just about every ...
0
votes
2answers
1k views

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 ...
0
votes
2answers
49 views

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 ...
1
vote
2answers
221 views

*.domain.local in my /etc/hosts

Can I set access to all subdomains in my local domain in etc/hosts file? Like 127.0.0.1 localhost *.domain.local Now it looks like 127.0.0.1 localhost domain.local mail.domain.local ...
-2
votes
3answers
1k views

Can't edit file after `chattr +i`

After chattr +i /etc/hosts I can't edit this file (obviously). But how can I revert it back. I need to edit this file and then lock again. UPD ls -l /etc/hosts -rw-r--r-- 1 root root 274 ...
0
votes
1answer
136 views

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 ...
1
vote
1answer
131 views

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 ...
0
votes
1answer
270 views

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 ...
5
votes
1answer
6k views

How can /etc/hosts be used to associate multiple domains with a single IP?

I have a single IP (81.174.66.48) and I would like to use /etc/hosts to associate multiple domains with that IP. Currently my hosts file looks like this: 81.174.66.48 nerto.it nerto I would like ...
0
votes
2answers
11k views

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

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 ...
2
votes
2answers
6k views

Howto use Apache virtualHost with etc/hosts

I'm trying to have http://www.mysite.com and http://test.mysite.com running on a production webserver, and now I'm doing some basic tests in local machine before transfering the datas on the ...
0
votes
1answer
445 views

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 ...
1
vote
1answer
63 views

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. ...
0
votes
2answers
183 views

.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 - ...
0
votes
1answer
49 views

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 ...
1
vote
2answers
279 views

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 ...
0
votes
1answer
238 views

Using BIND for virtual hosts?

I've created the following virtual hosts: <VirtualHost *:80> ServerName testingsitehere.com ServerAlias www.testingsitehere.com DocumentRoot ...
0
votes
3answers
222 views

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 ...
0
votes
1answer
49 views

Map a URL to local Blog

I would like to type /blog in my url and have it go to my locally hosted WordPress page at http://localhost/wordpress I modified my host file to redirect blog to the localhost. Now apache display the ...
1
vote
2answers
752 views

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 ...
0
votes
1answer
2k views

/etc/hosts - How can I point to a certain directory in my local intranet?

I need to point admin.company.com to 192.168.2.100/admin How can I do that?
0
votes
3answers
108 views

map old windows server to new windows server

At the moment, I have 2 servers (serve1 and serve2). serve1 is old and data is small enough to move to serve2. serve1 = Win 2k3 serve2 = Win 2008 R2 The problem is I need to keep the serve1 name ...
3
votes
1answer
456 views

Different hosts files per network on windows 7?

I'd like to be able to have seperate hosts files for different networks on windows 7. Basically, I have an internal IP address for my web server at home which I was thinking of putting in the hosts ...
2
votes
1answer
3k views

Getting “unknown host” on hostname despite adding it to /etc/hosts

I have an Ubuntu server called crow: $ hostname crow But when I try to ping it (from itself), I get unknown host: $ ping crow ping: unknown host crow This is despite explicitly adding crow to ...
1
vote
1answer
172 views

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 ...
0
votes
2answers
590 views

connect to a machine inside the intranet from outside with same address used inside

I have a server inside my intranet, in wich i have apache running with some web applications. when i'm at office the url i use to connect is zeus.mydomain.it, it works couse i have in my /etc/hosts a ...
0
votes
1answer
61 views

setting domains

EVERYTHING HAS BEEN SOLVED - no need to answer :) I'm setting a local webserver to do a lot of web development work from now on. I'm not really knowledgeable in hosting configuration. Thing is I ...
3
votes
3answers
3k views

Is it true that hosts doesn't work in VPN?

C:\WINDOWS\system32\drivers\etc\hosts Seems it's no longer working after I switch on the VPN. Is it the case ,or just my own mistake?
0
votes
2answers
439 views

Strange Items in Hosts File and Netstat

I ran a netstat -a on a computer and there were a number of strange items: Proto Local Address Foreign Address State TCP netgym:epmap virusin:0 LISTENING ...
0
votes
2answers
4k views

Linux: hosts.allow, hosts.deny - how do I allow all except hosts mentioned in hosts.deny

How do I configure hosts.allow and hosts.deny to allow all connections from all hosts except for some hosts/ports specified in hosts.deny? This is what I have now in these files: hosts.allow: ...
1
vote
1answer
4k views

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 ...
2
votes
2answers
5k views

Squid proxy server ignoring hosts file :(

Using: Squid Cache version 2.7.STABLE3 for i686-pc-winnt ... Whatever I put into the hosts file, it seems to be ignoring it. here's my configuration :- ... hosts_file ...
1
vote
1answer
575 views

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 ...
0
votes
3answers
1k views

SMTP relay to multiple hosts

We are in the process of switching our email from a locally hosted server to Google apps. We have a lot of users and I'd like to be able to switch them over one at a time so I don't get inundated with ...
1
vote
3answers
2k views

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 ...
0
votes
1answer
459 views

What should my FQDN be?

When I setup my server, the guide said to use ns1.domain.com, (both my nameservers are ns1.domain.com and ns2.domain.com). However, recently, I changed it to www.domain.com, and everything works.. ...
2
votes
1answer
5k views

Why can't I access an administrative share on my local machine?

I'm working on a Windows Server 2008 R2 (x64) VirtualBox image that I've set up as a CI/deployment testing environment. I've got VirtualBox set to use Internal-Only networking. I've set up hosts ...
0
votes
1answer
1k views

How do I block host name instead of just IP?

I was wanting to block a list of specific hosts, specifically so my server has no access to them at all. I tried using host2ip and entering the result into IP tables , but the IPs don't seem to lead ...
3
votes
1answer
4k views

How to configure ldap to resolve host names?

I'm new to LDAP and I already configured accounts with LDAP so I can login on few computers with LDAP. Now I would like to add some host names to LDAP. In /etc/nsswitch.conf I changed: hosts: ...
0
votes
1answer
2k views

access xampp virtual hosts from virtualbox

My host is Ubuntu and guest is Windows XP. I'm also running Xampp on Ubuntu with a bunch of virtual hosts. For example I have a host named "ehpc.loc" binded to 127.0.0.7 ip-address. So I need to ...
3
votes
3answers
4k views

How can I have a user specific hosts file

Is it possible to configure user specific hosts file instead of a common /etc/hosts. For example if user "user1" tries to get the name for the IP: "127.0.0.1", he gets "dev.user1" and if user "user2" ...
0
votes
1answer
825 views

How to enable dynamic client in hosts.allowed for SSH?

I'm using a hosts.allowed for SSH. Now, some people have dynamic IPs but they also have dyndns.com hosts. How could I use a dyndns.com like host to /etc/hosts ? (The server is a Debian 5.0 Lenny ...
2
votes
4answers
9k views

hostname -f says “hostname: the specified hostname is invalid”. Guess why?

hostname -f says "hostname: the specified hostname is invalid". The hostname (FQDN) specified in /etc/hostname is also listed in /etc/hosts and is pingable. No actual DNS server yet of the host knows. ...
1
vote
1answer
2k views

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 = ...
2
votes
1answer
466 views

Make an ip based virtual host only respond to a single host name

Is it possible to make an apache ip based virutal host only respond to a specific host name? I have a rouge domain name pointing to my server. I know I could redirect it or throw up a 401, but would ...
3
votes
4answers
315 views

Windows Hosts File Location

I've got a general query regarding the location of the hosts file on Windows. It resides at this location: f:\windows\system32\drivers\etc\hosts My question is why? Could Microsoft have picked a ...