Whenever we host a website in Internet Information Services (IIS), we previously would access the website with localhost or with that specific machine IP address in the manner of: Did you ever think of accessing your website with a domain name, such as instead of or on your local machine? How can I tell my IIS that is pointing to the files on my local computer and to not try to access the internet? The answer behind all these questions is the Hosts file. This will be in System32 Drivers etc. In general if the Windows Operating System is installed in the C drive then it will be C: Windows System32 drivers etc. You can open this file in Notepad, Notepad++ or any text editor that you have. If you open this file, it will be as follows. Note: You need administrator privileges to save your changes in this file. Case 1 If you want to create a new website then that is possible for accessing using a domain name. Use the following procedure. • Open IIS ( Click WIN+R, enter inetmgr in the dialog and click OK. Alternatively, search for IIS Manger in start window). • Expand the Server node and click on the Sites folder. • Click on Add Website in the Actions pane. Note: If need any help for the preceding procedure then please check my blog article. • Enter the details in the Add Website window as follows. Visual studio for mac capitalize text. You can cancel at any time. Experience the power of dictation with Dictation Pro and increase your productivity. Speed up document creation, increase your productivity and complete your work efficiently than ever before. Even after canceling you can still use Dictation Pro with all word processing features enabled but you will not be able to dictate words. At any time you can choose a monthly or yearly subscription to re-enable all features. Nov 28, 2018 - The hosts file is used by your computer to lookup/resolve domain names to an IP address. To the file, i would recommend trying to manually create the file. Apple MacOS High Sierra does support forcing DNS resolution. • Click on Ok to create the website. • If you try to browse your website now, you will see an alert in Chrome that your webpage is not available. You will see the same kind of issue in other browsers also. This is because the address you entered will search in the internet instead of your localhost. To overcome this open the Hosts file in any text editor and add the following command. 127.0.0.1 www.testsite.com Now try to reload the page by clearing the browser cache. It will work as follows. Case 2 If you want to access the website using the domain name you created then use the following procedure. • Open IIS ( Click WIN+R, enter inetmgr in the dialog and click OK. Alternatively, search for IIS Manger in start window). • Expand the Server node and then expand Sites folder. • Click on the Website that you want to access using a domain name and then click on Bindings in the Actions pane. • Select the binding of type http and then click on Edit. This will open a new window as follows: Enter the host name in the provided text box.
0 Comments
Leave a Reply. |