Im trying to access OWA on a different port than 443 for external connections because that port is already assigned to a web server. So Ive set up the router to redirect 445 to 443 internally.
I've appended the external url with port 445 for OWA under Server Configuration/Client Access/Outlook Web App so now it looks like https://mail.itmanx.com:445/owa, but when I try to access it, it redirects to a login url without the new port number and thus I just end up on the website.
You can see the results by viewing the following and seeing step 3 redirects to login.aspx without :445 appended to it...
http://tools.pingdom.com/fpt/#!/wC5kW9Mbt/https://mail.itmanx.com:445/owa
Internally I can access the site fine on :443
Can anyone point me in the right direction please?
Edit:
Done an iisreset before you ask :)
It might make sense to configure your web server to act as a reverse proxy for the /owa virtual directory rather than use a non-standard port.
Related
I am trying to build a new DNS, which will act as a proxy for certain domain names and uses a public DNS as upstream.
My understanding of DNS:
Client asks DNS (x.x.x.x) about example.com
DNS will look up inside its zones (or parent and root) and find example.com can be found at i.i.i.i
DNS will send i.i.i.i to the client.
Now, client asks the ip address of restricted.test and DNS server knows it is a restricted website, so instead of giving the direct ip to the website, it gives it's own proxy address p.p.p.p to the client.
Please correct me if I'm wrong till now, but when the client tries to connect to p.p.p.p how the proxy server knows which website the client wants to go in?
I really want to know how these work under the hood
Thanks in advance.
This mechanism you are asking about is the Proxy Auto-Configuration (PAC) file.
Read more about it here :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file
And here :
https://www.websense.com/content/support/library/web/v76/pac_file_best_practices/PAC_explained.aspx
Essentially in corporate networks, a PAC file is pushed out to every computer, and browser settings are also configured to enable the PAC file. But it can also be done manually. Just check your browser proxy settings to see the location of the PAC file it is pointed to.
I am hosting my nodejs app in heroku and my domain name is in OVH.
I managed to create a subdomain www and a CNAME record that points to my heroku app. It is working fine and SSL is also working fine from heroku.
I added a redirection from all subdomains to https://www.mywebsite.com and everything is working fine.
My problem is when i type www.mywebsite.com, there is no redirection and no SSL.
How can i redirect www.mywebsite.com to https://www.mywebsite.com ?
Thanks !
Unfortunately, No.
DNS maps domain names onto IP addresses, that is, it tells the client that example.com points to 12.34.56.78. HTTP vs. HTTPS is a matter of picking a port, and using the right protocol, and this is negotiated directly between client and server; DNS lookup has already happened before that.
If you want to redirect all plain-http traffic to https, you have to do it on the web server, not the DNS server.
In your situation, you could do this in node.js.
There tons of examples online for node's built-in http server or for frameworks like express. I'd recommend this solution.
But there are also solutions like Cloudflare.
They offer you a DNS Service and a proxy, which can handle such HTTP to HTTPS redirection and they even let you use their own SSL Certificate, so you don't need to buy (or let's encrypt) a SSL Certificate on your own, for example.
Update 4/12:
I'm using Vigor 2910 (router) to connect to my server. I found out that I cloud view the website correctly by external ip from other PC. But everytime I try to login the browser redirects me to internal ip. Is there any settings I should know besides port forwarding 80 and 443 from external ip to internal ip?
I found a way to fix the problem.
My problem is, when I use another PC connected to different router trying to connect to the PHP site with external IP, it always redirect me to internal IP address.
For example:
Entering site https://140.XXX.XX.XXX
After clicking any objects on the site, then I was redirect to https://192.XXX.X.XXX
Cause I'm connected to the router that I didn't notice it not only affects my PC but also in PHP config.php. In config.php, the redirecting address is written in internal IP instead of external IP.
Just simply change the IP to external IP, then it works.
I'm using Windows Server 2003. I have one web application running on IIS and another web application running on Apache Tomcat. Currently all requests go to port 80. From what I understand, Tomcat and IIS cannot use the same port simultaneously. Therefore I need a way to redirect users. If a user goes to www.example.com then I need them to use http://localhost:80 but if they go to www.otherExample.com then I need them to use http://localhost:8084/otherExample
How does this generally get done?
Set IIS to port 80.
Create two virtual hosts on IIS for your two domains.
Set the document root of the first to a directory on your IIS.
Remove the coyote http/1 connector from Tomcat.
Look here, how to redirect from your IIS to Tomcat.
Map the second virtual host to Tomcat according to the tutorial.
Then you can access example.com and otherExample.com without ports or directory changes.
Well, you should go with something like this:
First of all, I will assume that you know how to map example.com and otherexample.com to 127.0.0.1 and that is really what you want. So I will skip that part and go straight to configuration.
First of all, when users type http://www.domain.com it is EXACTLY THE SAME as typing http://www.domain.com:80. Also, when users type https://www.domain.com it is EXACTLY THE SAME as typing https://www.domain.com:443. That means, if you omit the ports for https and https, 80 and 443 are assumed respectively.
So, this brings you to only one conclusion. You have to set one web server (IIS or Tomcat) to port 80, and another to port 8084. You decide which is which, because for configuration it is irrelevant.
Now, to accomplish what you need, you need to create a redirection script on the server which listens to port 80. So, if you use PHP for redirection script, you could use something like this:
<?php
if ($_SERVER['HTTP_HOST']=='www.otherexample.com') {
Header('Location: http://localhost:8084/otherExample');
}
?>
Also, you could accomplish something similar using configuration file of the server itself (the one that is listening on port 80).
This is only general explanation of the steps you need to take. Obviously, you will need to adapt them to work for your case.
Let me know what you think.
I made a proxy server,and I'm testing it using a client name Proxifier.
I made the first part with autentication to work,but i don't know what to do next.
I called Connect() an the address received from the client,but that is from a webpage.
So i need to connect to the webpage? What next then? I can't browse the net with the proxy on.
So i hope someone could help me an what to do next.Thanks.
to test a proxy server is simple as these.
In your browser, configure the proxy settings to the ip:port of your proxy server, in these case if you are testing on local machine, your ip is 127.0.0.1 and you are listening on port 80.
browse a webpage mostly google with the browser and see if it loads properly, if it does, then you proxy server is working