I bought a domain, I configured Apache server on Windows but shows my IP instead of the URL - apache

The title is quite descriptive, I bought a domain using Google Domains. I mount an Apache Server 2.4 in Windows 7. The problem is when i access the web url it shows the ip instead of the URL. I asked Google for this problem and they referred me to Apache configuration. But i don't find nothing in the Apache configuration to show the URL instead of the IP. Anyone can help?

I already solved. The problem was in Google Domain configuration in the DNS configuration. Ask Google they are really kind if you have the same issue.

Related

Domain name and SSL for tomcat web app

The question I am raising here has been asked couple of times and I went through most of them, including stackoverflow posts and other blog posts. The case is that I couldn't find something which fits to my requirement and I'm not gonna play around in our product environment with suggestions.
So the situation is, we have multiple web applications hosted in our tomcat server, deployed in Amazon AWS. Currently we access them like http://<ip-address>:8080/webapp1. Now,
We have sub domains to point at our web apps. So something like portal.example.com will point the above URL.
We have wildcard SSL to implement for domains and sub domains.
Now, first I have to sort the domain pointing thing, which I found 2 separate ways.
Install Apache and do a Virtual Proxy (https://www.digitalocean.com/community/questions/how-to-tie-domain-name-with-application-running-on-tomcat)
Edit Serverl.xml (How to map tomcat 7 webapp to my domain)
Now my questions.
Can someone please advice which method is the best (If non is good, I'm open for others as well).
Which method makes the SSL implementation easy?
If I chose the Apache Virtual Proxy, where should I install SSL? In apache or in Tomcat?
If I chose Server.xml, where should I install SSL? In apache or in Tomcat?

Redirecting IIS website to Apache website

I have IIS 7.5 and a website which currently running. I also have build a new website on WordPress running on Linux container published by Apache Tomcat.
I need to redirect the old websiteURL which is hosted on the ISS to the new site on WordPress.
Is this possible ? I have tried http redirect, but this only works locally since the new website isn't published to outside.
You are right that Http Redirect should be the solution.
https://www.iis.net/configreference/system.webserver/httpredirect?showTreeNavigation=true
if your Apache website is 'not published', I guess it will not be visible for Internet users including the IIS box. This means there won't be any way of serving your content from the Apache box.
If you are in a setup that the IIS has visibility of the Apache, but general Internet does not, then you might have a solution. This scenario can exist because of certain firewall rules. In this situation, you can set up what is called a 'Reverse Proxy' in IIS.
https://blogs.msdn.microsoft.com/friis/2016/08/25/setup-iis-with-url-rewrite-as-a-reverse-proxy-for-real-world-apps/

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!

Error encountered with migration to cpanel

I was running my webserver on Plesk platform before moving to CPanel due to my perceived perception of Plesk's over-sensibility to threats to security.
After the migration, my site runs quite alright but a sister site that has my IP in its A records couldn't connect through me anymore. It only brings a default website CGI page. Please, I need help.
Have you created your second site on your cPanel server ? If yes, then there is an issues with the IP, Please check your domain IP and httpd configuration file on cPanel server and try update that IP in your DNS zone which are you using on cPanel server. Most of the time this type of issues occur due to wrong IP.
All i did was to create a wildcard subdomain which was attached to the subdomain already created on the other server i was trying to point to. That did the magic. Sorry my response seems belated.

htaccess? to redirect 2 different sub domains names to separate sites and servers

I have a domain with sub domains setup for
wiki.domain.co.ukowa.domain.co.ukowncloud.domain.co.uk
The Wiki & Owncloud sit on Apache on a Ubuntu box. The OWA on IIS on a MS Exchange server box. Presently I am directing http to the Ubuntu box and HTTPS to the Exchange box and accessing the sites that way but this can mean entering a long URL to get to the correct location on the Apache server. In addition I would prefer all sites to be accessed using HTTPS.
Presently if I enter any of the above into a URL I go to the default page of the Web server that I am port forwarding to.
My aim would be to have it so that if I goto wiki.domain.co.uk have the traffic divert specifically to the main wiki URL e.g. "wiki.domain.co.uk/wiki/clients/login.php" and the same with the owncloud subdomain. In addition I want to divert the owa.domain.co.uk and "domain.co.uk/owa" to the MSIIS server. If possible my preference would be for them all to use HTTPS although this is not a complete necessity.
I hope I am using the correct terminology and that this makes sense. I believe I need to forward all traffic to the Ubuntu box and setup a .htaccess file to do this but I am unsure as to if this is the correct way of doing this and the settings to set or even if this is achievable.
Any help or guidance much appreciated.