why subdomain on iis not working? - iis

I am trying to add sub domain on local IIS and use this construction. i search in google and find many other article like this but it not work on my PC.
how can I resolve this problem?

It caused by my proxy. it was on and my DNS changes was not affected properly.
I disconnect my proxy (psiphon3 in my situation) an every thing work like a charm.

Related

I tried to setup Gitlab pages and it broke the VM?

I have been running a gitlab instance and today I was trying to setup the pages function. I followed the gitlab guides and google cloud docs, it seems my config file got corrupt or broke (by me ofc) and even the ssh was down (directly on google console) till I rebooted the VM. Now I'm able to see that the instance is working on the shell but can't get it back online, I have 3 options here, 1) I wait a day or so to see if this is a domain/dns issue, 2) keep trying to a recover the gitlab that only had 3 users and no projects, or 3) make a fresh one and try to setup everything well from the start. The only things bothering me is losing 2 users that came to my project organically.
What can I do here? I'm trying to fix the config file but at the same time I don't know if its a domain issue because I had to change some dns configs to set the subdomain. The only thing I cannot understand really is how or why did my shell went down for at least a hour after I changed the configurations for gitlab. And btw are snapshots the right way to make backups with gcloud ?
What can I do here?
Undo your changes; in other words, put things back they way they were before, when the system was working. To do that, you have to know exactly what you changed.
If you are not keeping your config file in version control, you should start to do that, as that will make it easier to track and control your changes.
I decided to answer my question since I know how this problem occurred and it may occur for others.
Conditions:
Have a Gitlab self hosted.
Try to setup DNS settings for Gitlab Pages and the URL stop
responding even if the Gitlab instance still runs on the machine.
Here we can see the problem was in the DNS setup.
In my case I setup different DNS cases in my DOMAIN service DNS settings. Instead this DNS setup have to be made in your HOST/SERVER side.
To properly make a Gitlab DNS:
the wildcard domain *.mydomain.com type A should be on the server config, in my case gcloud DNS. Find out the software you use for your main machine server config.
Its good practice to setup the domain and server without redirection and set the proper DNS on the DOMAIN settings. This way your domain will resolve the subdomains without need for redirection on the DOMAIN settings. Once you set a wildcard type A record you can or cannot make the subdomain as a CNAME example, subdomain.mydomain.com. or you can use a separate IP for the subdomain with a type A record.
In summary, when setting up Gitlab Pages DNS do not change your DOMAIN settings, change your SERVER DNS settings.

Node.js with IIS using IISNode. I need to make a DNS rule so the site is accessible from outside the server without modifying the hosts file

I currently have the same problem as described in this question question!
I can access my Node.js site only if i modify my own hosts file to have (serverIP) NameOfSite, but typing that into the url doesnt work.
In the comments under the ansewer to that question it says that the person fixed this issue by adding a rule in their DNS. How would you do that? I am googling how to make rules in DNS and its not getting me anywhere and im seeing a lot of sites about firewalls.

Old version of websites showing with Azure

I'm running into an issue where different versions of the site are showing up but it only seems to happen based on the URL you type in the address bar.
http://example.com -- shows correct version
http://www.example.com -- shows correct version
www.example.com -- shows old/wrong version
Thanks for any help in advance! It's becoming a nuisance and I can't tell if it's a DNS issue, or something wrong within the Azure web app.
This sounds like a DNS issue.
Are you using a third party service for your domain name? If that's the case, you likely haven't verified the "www" part with them.
Take a look at the guide here. You want to make sure that you have everything available:
Http
www
*
I fixed this by doing a couple things
First I had to add a CNAME record for www pointing to azuresitename.domain.com
Next I had to delete the bad folder out of /wwwroot/wp-content/cache/page_enhanced
After that, it was no longer showing the old/original version of the files.

How would I use my domain on my windows server 2012?

I recently started a project of building a server at home and trying to host a website on it. I have almost everything setup and working correctly but only have one issue, I can't figure out how to use my domain with it. I've been searching the internet for a few days and everything I come across isn't very informative on how to do it. I'm very new to hosting my own servers and would love any help. Thanks in advanced.
I should also mention that I'm using Windows Server 2012 R2 and IIS 8. The computer has a static IP as well.
Not sure what you mean by use my domain but I am guessing if you go to the url it is not loading you site? If that is the case, have you registered you bomain with a provider (godaddy, namecheep, etc)? After that make sure your router is forwarding the ports needed to your computer. Lastly make sure that those ports are open on your firewall. Things to help debug issues is can you ping your domain and get your static IP, if not the issue is with your domain registration. If it tries to load the site and doesn't but the IP is good then the issue is between the provider and you computer more than likely.

IIS application subdomain

At work we have IIS 7
[Server]/[Site-with-irrelevant-name]/[Application]
To access the applications from another computer, the URL format is simply:
http://[Server]/[Application]
My colleague affirms that there is no DNS server included in the process.
I would like to acces to some application using URL
http://[Application].[Server]
I thought that I should use Bindings to solve this but so far I've found no working solution.
There's also nothing relevant in the computers 'hosts' files.
This doesn't look like the kind of configuration I'm used to work with.
Any idea?
Edit: In the comment here below I meant semi-relative path ("/...")
Solution found: My initial problem was that I have developed the application on a local computer using semi-relative path in multiple places.
So another solution is to access the application through
http://[Server]:[A different defined port]/
It's not exactly the solution to the question I wrote so I won't check this as the answer.
Solutions that would allow me to use a real subdomain are still welcome.

Resources