0
votes
2answers
86 views

create an alias for `localhost:8080/` as `www.my-domain.com/`

In ubuntu, I want to create an alias for localhost:8080/ as www.my-domain.com/. So that whenever I type www.my-domain.com/ in URL field, it shows up from localhost:8080/. What is the easiest way to ...
0
votes
1answer
39 views

How to temporarily override a DNS setting for a certain domain name to point to localhost?

I need ubuntu to use a certain domain name to point to a localhost address temporarily. How could I confgure for that ?
0
votes
2answers
89 views

Brief detail on hosts file

Can somebody explain what does this mean? Explanation to each line will be helpful. I have mentioned some of my queries in comments too. 127.0.0.1 localhost //According to @Dave, it's ...
1
vote
0answers
55 views

Localhost port aliased

I wanted to use /etc/hosts to define "aliases" for multiple services localhosted like: 127.0.0.1 localhost 127.0.0.1:8080 machin 127.0.0.1:8081 truc But it doesn't seem to work, surely because ...
-1
votes
1answer
605 views

How to correctly write hosts file to redirect to ip with subdirectory

Hello i'm not really new to linux, but i stumbled upon a problem when I copied website on localhost/subdirectory. The homepage is runing normaly but the links redirect to root of the server i.e. ...
2
votes
0answers
1k views

VirtualHost In Localhost Is Not Accessible From Localhost When Offline, How To Fix It?

I am setting up my own local development web server, mainly for theme development. I've successfully setup LAMP in Ubuntu 13.04 64bit Desktop, apache works fine. The machine where LAMP is installed ...
4
votes
1answer
111 views

Why is this single-word address being resolved? [closed]

I'm running Ubuntu 12.04. On my work network, there's a single-word address (let's call it foobar) that is responding to pings and HTTP requests, only from my machine. The address is not a TLD, just a ...
0
votes
1answer
139 views

How to define specific urls like 'localhost'?

The same way 'localhost' in the url points to /var/www/ I would like to put http://courses/somehting/somthing/moresomthings/.... and it would always point to /var/www/courses.php This is to work on ...
0
votes
1answer
382 views

localhost subdomain wildcard

I'm trying to have *.localhost pointing at 127.0.0.1. I read this post which is quite recent and looks promising but dnsmasq can't bind port 53: * Starting DNS forwarder and DHCP server dnsmasq ...
0
votes
1answer
598 views

Ubuntu hostname on lan config

My host computer is Windows 7 64. I have VirtualBox with an Ubuntu 10.04 Server x64 running as guest. My Ubuntu Guest has an ip of 192.168.1.104. I have openssh installed on the guest. I can ssh ...
0
votes
1answer
246 views

Access Wiki installation on Host from Virtual Server

Recently I set up a Dokuwiki installation on Ubuntu Server in VirtualBox. My host OS is Ubuntu 11.10. Till date I was using NAT configuration for my VirtualBox. Since today I decided to use Host-only ...
2
votes
4answers
3k views

What would cause 'ping localhost' to fail?

the /etc/hosts file contains a line: 127.0.0.1 localhost so localhost should be a valid hostname, but any attempt to connect to a port on localhost fails, including ping. Connection attempts into ...
5
votes
1answer
1k views

Where should I place aliases for localhost?

I often need to use aliases for localhost (127.0.0.1) for my development work of websites, such that I can access them locally while routed via apaches virtual host concept. In the past I have always ...