Browsing articles tagged with "hosts - Admins Goodies"
Jan 4, 2013
tom

Connecting to Gest ip address usign host alias [closed]

I have RedHat OS running on VMWare Player. My host operating system is windows7. Network configuration i am using on my virtual machine is NAT. I have configured my Guest operating systems /etc/hosts to have following configuration. [ora112@jipsl01t ~]$ cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost 192.168.179.129 jipsl01t jipsl01t.com when i ping from my host operating system, i can ping to [...]

Continue Reading »
Dec 20, 2012
tom

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 website to be accessible via https. I am sure about the following: SSL certificate is properly installed Port 443 is open on EC2 I am sure about these because when [...]

Continue Reading »
Oct 26, 2012
tom

127.0.0.1:8080 works but localhost:8080 doesn’t [closed]

This may be super easy so I apologize in advance but my strengths are in coding. Why can’t I access my localhost at localhost:8080? 127.0.0.1:8080 – works 127.0.0.1:80 – doesn’t work 127.0.0.1 – doesn’t work localhost – works localhost:80 – forwards to localhost and works localhost:8080 – doesn’t work I am trying to adjust my hosts/etc file to include localhost sandbox.dev In turn I would like to access my app at sandbox.dev:8080/test-file.php. So far, I [...]

Continue Reading »
Oct 26, 2012
tom

Virtual hosts in CentOS

I have a server with IP 1.2.3.4 and I want the domain www.something.com to load website from /var/www/html/something/ I’ve tried to configure them as follows: NameVirtualHost 1.2.3.4:80<VirtualHost 1.2.3.4:80>ServerName www.something.com ServerAdmin emai@email.com DocumentRoot /var/www/html/something/ ErrorLog logs/something-error_log CustomLog logs/something-access_log common </VirtualHost> I’ve reloaded apache, but when accesing the domain, it only shows the root of the server /var/www/html/ Any idea what is wrong? Asked by n/a A common mistake is to set the IP address in VirtualHost [...]

Continue Reading »
Jun 23, 2012
tom

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 hosts.deny and hosts.allow. I have various services denied to all but another server of mine should my IP change, and two other administrators + my own IP address. My question is, can hosts.deny/allow configuration be overridden so that they can gain [...]

Continue Reading »
May 19, 2012
tom

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 are now asking that we forward UDP/TCP traffic to it as well. I am pretty sure this is doable but I cannot for the life of me figure out [...]

Continue Reading »
May 18, 2012
tom

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<VirtualHost *:9000> ServerAlias %1.ourserver VirtualDocumentRoot D:/oursites/%1 VirtualScriptAlias D:/oursites/%1 </VirtualHost> So we can open the browser and access by http://someclient.ourserver:9000/. So far so good. Now we are installing a new server, where Apache will run on port 80, but we need that one specific site to have the VirtualDocumentRoot [...]

Continue Reading »
Jan 29, 2012
tom

Not able to get hosts file working on my Linux server

I have Ubuntu 11.10 running on VirtualBox and I’ve set up a virtual named server. I’m able to access this site from Windows 7, but I’m not able to access the site from Ubuntu. My HOSTS file is located in /etc/ folder and looks like this: 127.0.0.1 localhost 127.0.1.1 ubuntu-VirtualBox 192.168.0.97 mysite.com But whenever I try to access mysite.com from the server, I get redirected to a site saying that this domain is for sale. [...]

Continue Reading »
Jan 12, 2012
tom

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 allow me to login from my local computer with mysql administrator program. After I saved the entered data I cannot do much on mysql Webmin says DBI connect [...]

Continue Reading »
Dec 22, 2011
tom

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 As mailq mentioned, DNS supports wildcard host entries (while the hosts file does not). A DNS record with the name * will match all names for which there is no other record on that name, returning the wildcard record. An entry would look like [...]

Continue Reading »
Pages:12345678»