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

Proper configuration of Virtual Hosts SSL

I have installed an SSL certificate on my Ubuntu EC2 instance and I need one of the websites hosted on this instance to be accessible via https. I have several websites hosted all on the same IP through Virtual Hosts. However, I only need one…
seedg
  • 109
  • 1
  • 5
1
vote
2 answers

Is it possible to point to the subdomain of a site by changing the host file?

I am trying to point a URL to a particular IP address.But the IP belongs to the domain and I want it to point to a subdomain belonging to that domain.I am doing this by altering the hosts file in the etc directory.So is it possible for me to do…
1
vote
2 answers

Hosts.deny blocks whm access?

I have my hosts.allow and hosts.deny set up as follows: Allow: sshd: (my static ip) vsftpd: (my static ip) Deny: ALL : ALL but this blocks all access to WHM and cPanel? What else do I need to put in allow to enable these for myself? Would the…
Dan
  • 113
  • 1
  • 2
  • 10
1
vote
1 answer

Got Permission denied with JAX-WS client on tomcat6 server

I have a strange behaviour with a java client that uses webservice stubs generated by wsimport. The client says sth about Got Permission denied: connect while opening stream from http://dev:8080/LicenseServer/services/ServerImpl?wsdl But I can open…
1
vote
3 answers

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 client wants to see the dev site before its…
Marakoss
  • 113
  • 3
1
vote
1 answer

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 127.0.1.1 avalanche allows my server to be accessed…
user1527429
  • 111
  • 5
1
vote
1 answer

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 need to rotate them. For instance I can…
1
vote
3 answers

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 Access List Action Comment sshd…
beingalex
  • 335
  • 3
  • 7
  • 13
1
vote
1 answer

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 changes immediately but we all code independently at…
1
vote
3 answers

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 edited their hosts file with lots of entries pointing…
1
vote
0 answers

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 relaying again to a web DNS server (eg OpenDNS) or…
1
vote
0 answers

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? I have tried modifying the hosts file so that…
olivernn
  • 121
  • 3
1
vote
2 answers

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 make it "localhost,84.xx.xx.xx" thinking it will…
adrianTNT
  • 1,077
  • 6
  • 22
  • 43
1
vote
1 answer

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 is a browser "Page cannot be found page". If I start…
CourtDemone
  • 323
  • 1
  • 4
  • 8
1
vote
2 answers

*.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 web.domain.local other.domain.local ...
fl00r
  • 575
  • 2
  • 7
  • 20