Jump to content

Hosting A Website in IIS and Removing Port Number From Domain


Freeman35

Recommended Posts

Hello,

https://www.youtube.com/watch?v=QiANmo2NHSs

Save this config in dll folder. file name be "web.config"

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <add value="your_app_name.dll" />
            </files>
        </defaultDocument>        
    </system.webServer>
</configuration>

So you have not add port number & dll name to url link. And If you need still use with port number, add port number in binding too. So you can use default port 80 and your definition port too.

regards

 

Link to comment
Share on other sites

And if you want to redirect https://yourdomain.com/app to internal uniGUI App in IIS you have to install modules:

  • requestRouter_XXX.msi
  • rewrite_XXX.msi

Create https binding with letsencrypt and providing a web.config with these settings:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Redirect to UniGUI app" patternSyntax="Wildcard" stopProcessing="true">
                    <match url="*" />
                    <action type="Rewrite" url="http://localhost:8077/{R:1}" />
                    <conditions>
                    </conditions>
                    <serverVariables>
                        <set name="HTTP_X_FORWARDED_HOST" value="{HTTP_HOST}" />
                        <set name="HTTP_X_FORWARDED_SCHEMA" value="https" />
                        <set name="HTTP_X_FORWARDED_PROTO" value="https" />
                    </serverVariables>
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...