simple domain question - apache

Hi everyone I'm a new apache tomcat user I have question regarding seting up a domain name I'm kinda confused about that and how do I know what is my current domain name? can I change the domain name ? I looked into the apache documentations but it was not clear
Thank you in advance
Lava

This question sounds a lot like it's asking about domain name registration and DNS hosting rather than anything tomcat specific.
Your current domain name is probably given to you by whoever hosts your server if you're using public address space. If it's a Unix/Linux box you can find out what that is (assuming things are configured sanely) from a shell using
hostname -A
If you only know the IP address you can make a reverse lookup to find a DNS name that probably points back to your server.

Related

Is it possible to access Apache virtual hosts over a local network without editing client computers hosts files?

I have several websites set up on my local XAMPP, and have recently setup virtual hosts so that they can be accessed from my machine using dev.website1.com, dev.website2.com etc.
To achieve this I had to edit my hosts file C:\Windows\System32\drivers\etc\hosts to ensure the name resolves to the correct IP address.
I would now like to make the sites accessible from other computers on the local network, but editing the hosts file for each machine manually seems to be a bad way of doing it, as it would quickly become unmanageable with several machines/addresses to keep on top of.
My question is: Is it possible to add a DNS record or similar to the domain server of our local network (SBS 2008-R2), so that machines on our network can access my websites without having to edit the hosts file on each machine?
Apologies if this is a noob question - I have tried to RTFM, but I am not a network specialist and can't really even be sure if what I'm reading is relevant to my problem, so I really need some help. Thanks.
If you want to use a made-up hostname, it either has to be in your hosts file or in DNS. It's obviously possible to add new subdomains or aliases (CNAME) that point to your existing IP/host to any DNS server -- it's would seem to be a routine operation for your DNS administrator.
After a lot of research I eventually found out how to achieve what I want. I created a new forward lookup zone with the address dev.testsite.com, and then created a blank A record and set it to the IP address I wanted it to forward to. Anyone on my network can now type dev.testsite.com to see the local apache server, or www.testsite.com to see the live version.
I'm sure there are also other ways of achieving this, but as far as I know this is the simplest.

Protect home (webserver's) dynamic ip from reverse DNS issue

this is my first question here =)
I'm setting my webserver at home (trying both apache and nginx) and I've found that you can easily get and use free dynamic dns (sub) domain to make your server available not only with your home ip that would be changed next time after disconnect and connect to the internet. Actually I've made it working and it's great..
But the problem is that my personal unique data (account id/machine name) could be retrieved with reverse dns look up and I can not hide my real ip that is attached to server.
You can use proxy while browsing the internet, but how to proxy your web server (apache) that have free dyn dns (sub) domain?
I've already tried to create VirtualHost configurations, also with the use of proxy modules (mod_proxy, mod_proxy_http, mod_proxy_html) and additionally with proxifier tool, but no luck.
Some people say that it is possible to hide ip with nginx, but I never used to work with nginx. Still believe it is also possible with Apache, just can't figure it out.
I'm using private proxy in format [proxyip:port]. I must attach it everytime to my home ip to make it work. Maybe it's better to get login/password auth proxy, but at first I should find the way how to use it with web server.
Is there anyone who have luck with it? Can you explain, please, the proper config for apache? Currently I'm using version 2.4.
Many thanks and have a good day!

Link domain to dedicated server

I need some help, I can not find my answers, certainly because I am not asking my self the right questions. So here's the thing, in my very own home, in the very own room I'm writing this I got a dedicated machine running apache server. As well I bought the cheapest domain name I could find in order to make some experiments. But I can not seem to point my domain to my dedicated server. I don't understand how to do it. I suppose it important to say that my ISP uses dynamic IP addresses. Could someone point me toward some documentation please?
When you are talking about your very own home, than you are talking about sitting behind a NAT. Thats means, that your router/gateway has to forward Port 80 to your apache server.
Moreover, you have to use a dynamic DNS solution (dyn.org, no-ip.com, ...) to link a domain to your dynamic ip address.
However, it is not possible to link a generic domain to a dynamic ip address.

Accessing name-based virtual hosts from the internet

I'm currently beginning to learn Apache. So I'm really a beginner here. I've been able to set up a basic site and virtual hosts that I can access within my own network.
Forgive me if my question sounds stupid but is it possible to access my virtual hosts via name-based virtual hosting using only my external IP? Or would I have to have an actual registered domain name for my virtual hosts that will be mapped by DNS to my external IP?
I might have answered my own question here. But I dunno. I'm a total noob here.
Thanks!
You can serve multiple domain-names off of a single IP, though IMO it is always best practice to have separate IP's for each domain/subdomain you want to use, as over time you might need to move domains around across different servers. In these cases you can (if your hosting set up allows) move the IP address along with the site you are migrating without having to update DNS.
While it's not a good permanent solution, PageKite is a neat service that could help you out

setting up domain name

i'm new at webhosting. I'm trying to set up a small website and i have bought a domain name www.example.com. I have a vps running centos 5 with apache and direct admin. However i am not sure how to make the domain name i bought link to the ip address of my server, so that when someone types www.example.com it takes them to my website.
Also, is it difficult to set up an e-mail address such as me#www.example.com? Thanks for your advice.
When you buy a domain name, you need to tell the registrar which name servers you use. Probably your hosting provider did that for you. He also administers the name servers, but might give you limited permissions to modify your records. Ask him for details.