I have hosted my .Net project in IIS server and now I have the IP address.I want to change it to host name and I have already tried following steps
1) Add the Host Name in site bindings according to my existing IP address in IIS server
2) Do changes in host file(C:\Windows\System32\drivers\etc) according to the added host name
But I am getting following error when I navigate host name in browser
Bad Request - Invalid Hostname HTTP Error 400. The request hostname is
invalid.
What is the solution for this problem ??
Where did you host the IIS server? On-premise domain environment or Cloud VM with public firewall IP address?
If you are hosting the web server in domain environment, then you need to create a CNAME for your web server in DNS and set binding host header for your website in IIS.
If you are just hosting the web server in cloud VM, then you should purchase a public domain from domain provider like Godaddy and map the domain name to your Virtual machine'S public firewall address. After that, you should add host name to your IIS site. Finally, you should be able to access the website. Just remember to allow port number in firewall inbound rule.
Related
I have a bastion host ec2 ,which don't have any public IP address ,but i have one application load balancer which is integrated with private EC2 ,but when I added CNAME(ALB DNS Record) record with host name WWW in my Godaddy DNS records So my website works only with https://www.example.com ,all other urls like -
https://example.com,
http://example.com do not work.
after that I had use the domain forwarding feature of godaddy but through this feature I can forward only one url like- example.com to www.example.com but I want my all urls should work fine.
Do we resolve this issue by help of A record?
I added CNAME(ALB DNS Record) record with host name WWW in my Godaddy DNS records but my website works only with https://www.example.com .
I had use the domain forwarding feature of godaddy but through this feature I can forward only one url like- example.com to www.example.com .
I would suggest you start using AWS Route53 to manage the DNS records, after that, you can create A record to point to the ALB. You would have to create a hosted zone for example.com, then copy the name servers of it and use update your Godaddy configuration to use AWS name servers. More information can be found here: https://virtualizationreview.com/articles/2020/07/14/migrating-dns-services-aws.aspx
I am running a local web server with SSL enabled that my app needs to log into. I have a domain name whose A-record is set to 127.0.0.1, which allows for local development using loopback with an nginx server with different subdomain configurations for services on the app I have hosted locally. The problem is that, in the iOS simulator, the domain resolves to the device's localhost and not my machine. I can't use the IP address of my machine because I need the domain for nginx to redirect to the proper vhost (also SSL and OAUTH would get mad).
Is there any way to use a custom DNS server for lookup in the simulator? Either that, or can I edit the hosts file to set the domain to my device's LAN IP instead of localhost? Any other ideas?
I created a new mvc application, published it and deployed it on the sever under the default websites in IIS 7. Now I can access the website from my local system using the url http://server1/mymvcapp/login
Server1 is the server name where the application is deployed.
How can I mask the server name "server1" in the url to a more user friendly name, for example http://hellomvc.com/mymvcapp/login
You need setup DNS server or user hosted DNS (it's optional). You can read more here:
setup-a-website-with-dns-and-iis-7
and here:
installing-windows-dns-server
Usualy for host nameservers of domain name you need 2 external IP addresses.
I have a developed a web application based on asp.net mvc 4 framework and it works fine in visual studio. since we want to launch our website to public we bought a domain from the godaddy account. And in GoDaddy -> Domains -> Manage -> we mapped the domain name to public/external IP address e.g. 178.112.24.5 ( which is different from what i get in cmd-> ipcoonfig-> shows 192.168.0.2). I guess i should use the public ip addresss not the local ip address shown in the cmd -> ipconfig.
Now i created a web site under iis-> sites-> add new site -> mynewdomain -> with protocol as http, ipaddress as unassigned(default) , port as 80 and hostname as www.mynewdomain.com . But whenever i launch this site from iis, it routes to ISP router configuration login.html page(BTW i use Rogers Internet). So it also fails to launch from other network computers and chrome shows the error as ERR_CONNECTION_REFUSED.
I followed some posts on this site:
How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress - Error 502 (Cannot debug from Visual Studio)?
https://serverfault.com/questions/54623/sites-in-iis-not-available-externally
I tried to fix this by defining firewall rule for port 80 (selected domain,private and public ) , dnsflush and some suggestions from the above two links. But it didn't fix the issue.
You want host your app yourself, ok.
So:
1. To access your host from other networks you've open ports (80 for http and ) in your firewall, sure your local IP address will 192.168.0.2 and you can access your app from LAN on it. But others must get your external IP.
2. Next moment is your domain resolver, you must setup your Name Servers for your host external IP address.
Now what can you do:
First of all use DMZ for testing, it will be open all connections to your machine, but after testing setup your firewall and open only nessessary ports.
And if your internet provider gives you your external IP + not blocking connections you can host your application.
Sure this way of host your web site is not recommended because:
A. Windows 10 Home is not server OS.
B. You need minimum 100 MB/s Speed.
C. Not secured to use home router as firewall.
Hope this will help you.
I have installed jira on as a service on my server(myhost) on port 8009
Now I am able to access the jira on myhost:8009.
The problem is that I have other domains on the same host(myhost) say abc.com , xyz.com etc. And jira is available on all the domains as all these domains are on same host (myhost). So abc.com:8009 , xyz.com:8009 ...each domain has jira.
How can I Control this if I want jira on only one domain , not all domains on my host.
You should identify the IP of your "myhost", and in Tomcat set the Connector's address attribute to that IP.
If you have multiple domains pointing to a single IP, then set Tomcat to listen only on localhost (127.0.0.1), and set up an Apache (or other httpd you fancy) that only listens on the given domain name and set up a reverse proxy there.