The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
3k views

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

Is there public proxy that allows edit its hosts file?

I my deployment enviroment I use local Hosts file to change domains destination to another server I use for development. It works nice and it's easy to setup. But as always there is a catch. If our ...
1
vote
1answer
340 views

Linux (Ubuntu): Setting hostname on internal network

I've got an Ubuntu Linux server with a WiFi card. When I boot my computer apache web server starts and the /etc/hosts file lists which lists the following: $ cat /etc/hosts 127.0.0.1 localhost ...
1
vote
1answer
218 views

Apache log to one file for multiple domains with logrotate

I would like a solution to my problem where i have 100s of domains on an apache server. I don't want a separate log file for each domain i want them to share a log file. This is easy enough if i don't ...
1
vote
3answers
2k views

hosts.allow and hosts.deny WHM Host Access Control - what if my IP changes?

I want to use WHM/Cpanel's Host Access Control interface to change some settings in hosts.allow and hosts.deny. I want to block all access to our SSH exept from the IP we have from our office. Daemon ...
1
vote
1answer
33 views

Apache Site Configuration Share Settings

For our WordPress development server, each developer has a subdomain to work on the site which point to the same server and database, but different folder locations. This allows us to see database ...
0
votes
1answer
261 views

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

hosts file to create url alias [closed]

I'm using a Mac where I've located my webroot folder into a Dropbox sub folder. Everything works fine but I have a problem /Dropbox/webroot /Dropbox/webroot/site-one.com /Dropbox/webroot/site-two.com ...
0
votes
2answers
549 views

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

Windows redirect by port? [duplicate]

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

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 ...
1
vote
3answers
713 views

User-based HTTP Host to IP redirection on a Windows Terminal Server

I've just setup a Windows 2008 R2 Terminal Server with IE9, it's intended to be used for testing. Unfortunately the web-bods tell me they ALL have a local apache on their machines and they've all ...
0
votes
1answer
354 views

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

DNS resolves without adding the host IP and name to etc/ hosts file

Is there any way to resolve hostnames without added to hosts file? In order to access internal site in my company I have to add the host-name and IP in the .../etc/hosts file. Is there any way to add ...
3
votes
1answer
657 views

Squid ignoring hosts file (using SquidMan on Mac)

I installed SquidMan 3.1 on my Mac, and it works fine. But I really need it to redirect some of the traffic using my hosts file, and it seems to be ignoring it no matter where I put it. So far I've ...
1
vote
0answers
193 views

Attempting to DNS resolve / relay an IPv6 address for a host

I have a network switch doing IPv6 DNS relay to a Linux box (3.0.4-gentoo #7). The packets (DNS request) are arriving fine at the Linux box. Where I'm stuck now is how to resolve those, either by ...
1
vote
1answer
2k views

Since when the linux host utility ignores /etc/hosts? [closed]

I was struggling trying to find out the reason why the linux host utility was ignoring my /etc/hosts file until I find the answer to my question here: hosts file seems to be ignored: With this ...
1
vote
0answers
75 views

HTTP Logging Proxies

I want to implement a proxy that records and replays requests made to specific hosts. So that I can stub out external service requests when testing an application. What is the best way to do this? ...
0
votes
1answer
325 views

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

Cannot login to mysql after setting incorrect mysql privileges/host

On CentOS 5.x I used webmin panel and I was in mysql settings, I was trying to allow "root" to login from my home ip in addition to localhost. In the hosts list I had "any" or "localhost", I tried to ...
0
votes
2answers
135 views

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

Simple DNS Server or Tool for Local Web App Development

When I develop web-apps I sometimes have to hard-code full URLs into my generated markup. Even though one can generally get by using relative URLs a la <a ...
0
votes
1answer
108 views

Mapping all subdomains of a domain to an IP

How should I set up a server to map all subdomains of a domain to an IP? I wish I could do something like that in the hosts file: 127.0.0.1 *.example.com
2
votes
1answer
130 views

Does not having FQDN in /etc/hosts cause any problems?

Just been looking through some servers and seen that the external ip is set up with the full and short names the wrong way round, e.g.: a.b.c.d myserver myserver.mycompany.org What sort of problems ...
0
votes
1answer
88 views

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

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

Can a long /etc/hosts file slow DNS lookup?

I'm facing a little question here. I have a long /etc/hosts file. (working in the web, so I'm hosting a lot of sites locally for developping). Let's says it is about 40, 50 lines long. All ...
0
votes
1answer
219 views

Changing in hosts file [closed]

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

Editing hosts file - will removing default settings cause trouble?

I'm running a CentOS 5.4 machine and had trouble getting sendmail to work. After a bunch of researching, I found out that I needed to change my servers FQDN. /etc/hosts had the following: ...
0
votes
1answer
1k views

MAMP Virtual Hosts not working

So I'm pretty sure I set up my Virtual Hosts right, but they don't seem to be working. Yes, I have uncommented the vhosts include from httpd.conf. All I get when I try to access the virtual hosts ...
1
vote
0answers
194 views

Redirect incoming traffic for a domain to another local ip on same host

I have a server running Win 2008 R2, on that machine a run virtualbox where I run multiple ubuntu instances for webservers. I also have a router that redirects all traffic on port 80 to that machine. ...
0
votes
5answers
2k views

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 ...
0
votes
2answers
339 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
222 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
184 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
790 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
44 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
211 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
895 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
131 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
115 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
246 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 ...
4
votes
1answer
3k 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
6k 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
192 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
4k 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
352 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
59 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
157 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 - ...