Redirecting IIS website to Apache website - apache

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/

Related

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

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.

How to debug https setup?

I use my home network (ATT U-Verse) to serve my ASP .NET website on a Windows 8.1 Pro machine with IIS 8.5. Because Chrome requires https for doing audio recording, I want to move to https. I followed the instruction video at https://www.netometer.com/blog/?p=1758 , and everything corresponds (IIS showing that I have a certificate in the bindings and an entry for port 443) until I test the actual https link in a browser (on the server itself, on an other machine on the home network, or externally via my phone with data), which gives me a "This page can’t be displayed" or equivalent message. I added port 443 to the Norton firewall rule I already had. The http access still works, however. Netmon 3.4 shows no TLS or SSL traffic. I also tried disabling the Norton firewall temporarily. This leads me to believe that the problem is that either the ATT NVG510 router I have is blocking port 443, or that ATT itself is blocking it. Looking at the router settings on the Packet Filter page, it seems none of the default "Drop" rules are enabled, and there is an "Enable Packet Filters" button. Do I specifically have to set up a "Pass" rule?
Does anyone have any ideas on what I could do? Can I actually do https on my home server? My web site is www.jtlanguage.com . Sorry if this is the wrong place to put this. I'm a programmer trying to do some IT.
Thanks.
-John
Turns out I wasn't doing port forwarding. For NVG510 users this is done by going to the router page in the browser to firewall->NAT/Gaming page and adding a hosted application referencing the HTTPS service and the web server machine name.

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.

Setting up tomcat6 using mod_jk for Apache, page not found using https

I have been trying to setup an Apache web server along with a Tomcat6 web server, using SSL/HTTPS. On my Apache web server the SSL is working correctly, and I can access the web pages it serves up using SSL/HTTPS, but I am having a problem accessing the web apps on the Tomcat server using SSL/HTTPS. The new setup is on a Centos 6 machine, and I have a similar setup on a Fedora 13 machine.
I have compared all the files that I can think of between the two machines, but can not get to the web apps using HTTPS. When I try I get a "Not Found" error. I can access the web apps if I use just HTTP.
Can anyone point me to where my problem might be?
Thank you

https stops working after site publish

I am working on Windows Server 2003 (IIS6), which has two asp.net sites running in seperate app pools. One of the sites has an ssl certificate installed and was running fine on https. The other site has no certificate and does not require https
The problem I have is that when I publish my app from vs2005 to the site with ssl the https urls stop working and I can only use http. The error I get is as follows
From Google Chrome: Error 104 (net::ERR_CONNECTION_FAILED): The attempt to connect to the server failed.
From IE7: Internet explorer cannot display the web page, could be unavailable, dns is not reachable etc
The strange thing is the first time this happened, https eventually became available but I don't know what triggered the availability but when I published an updated assembly to the bin folder of the site which does not require https, the OTHER site became unavailable on https again
Help much appreciated!
UPDATED: Thanks for the suggestions but it turns out that the firewall was not open on the ssl port
Check if the firewall port for SSL (443) wasn't accidentally closed 443. ;-)
If both webs use the same IP address, make sure, that only the web with the certificate uses the SSL port 443 (first property page). The input field should be empty for the insecure site.
If that is not the problem, you could try to debug stopping the web without certificate and restart the web server.