<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Setup</title><link>http://forums.iis.net/1047.aspx</link><description>IIS7 Setup discussion forum</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Getting autogenerated URL's to reference an external FQDN and not the server name</title><link>http://forums.iis.net/thread/1906613.aspx</link><pubDate>Thu, 11 Jun 2009 13:02:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906613</guid><dc:creator>rkuite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906613.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1047&amp;PostID=1906613</wfw:commentRss><description>&lt;p&gt;I could never get it to work as intended through the GUI or script interface... I ending up manually editing the ApplicationHost.config file&lt;/p&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;To correct the hostname...&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;-Open Windows Explorer&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;-Navigate to C:\Windows\System32\InetSrv\Config\&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;-Open the file ApplicationHost.config with notepad&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;-Search for &amp;quot;bindings&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;-In the bindings section edit the line for http and add in the hostname / domain name to match your URL reference instead of the machine name.&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;COLOR:black;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;</description></item><item><title>Re: Getting autogenerated URL's to reference an external FQDN and not the server name</title><link>http://forums.iis.net/thread/1906497.aspx</link><pubDate>Wed, 10 Jun 2009 13:52:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906497</guid><dc:creator>pure.krome</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906497.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1047&amp;PostID=1906497</wfw:commentRss><description>&lt;p&gt;Sorry to raise this old thread, but is it possible to unlock that section via IIS Manager, or only via the command line?&lt;/p&gt;</description></item><item><title>Re: Getting autogenerated URL's to reference an external FQDN and not the server name</title><link>http://forums.iis.net/thread/1873201.aspx</link><pubDate>Fri, 04 Jul 2008 00:54:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873201</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1873201.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1047&amp;PostID=1873201</wfw:commentRss><description>&lt;p&gt;That just means that the configuration section is locked on the server level - just add a &amp;quot;-commitpath:apphost&amp;quot; to that command-line to have the config change be written to applicationhost.config - or you can unlock the section using &amp;quot;appcmd unlock config -section:system.webServer/serverRuntime&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Getting autogenerated URL's to reference an external FQDN and not the server name</title><link>http://forums.iis.net/thread/1873179.aspx</link><pubDate>Thu, 03 Jul 2008 19:36:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873179</guid><dc:creator>rkuite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1873179.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1047&amp;PostID=1873179</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;anilr:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;br /&gt;The equivalent setting on IIS7 is 
&lt;p&gt;%windir%\system32\inetsrv\appcmd.exe set config &amp;quot;Default Web Site&amp;quot; -section:system.webServer/serverRuntime -alternateHostName:&amp;lt;value&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When I attempt this command on the server when logged in as Administrator, I received the error...&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ERROR ( message:Can not set attribute &amp;quot;alternateHostName&amp;quot; to value kiosk2test.domainname.com&amp;quot;.. Reason: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault=&amp;quot;Deny&amp;quot;), or set explicitly by a location tag with overrideMode=&amp;quot;Deny&amp;quot; or the legacy allowOverride=&amp;quot;false&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Additional background information is that our site has SSL enforced&lt;strong&gt;&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;across the site.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Any ideas on what to try next?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Your help is greatly appreciated.&lt;br /&gt;-Randy&lt;/p&gt;</description></item><item><title>Re: Getting autogenerated URL's to reference an external FQDN and not the server name</title><link>http://forums.iis.net/thread/1873155.aspx</link><pubDate>Thu, 03 Jul 2008 14:20:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873155</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1873155.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1047&amp;PostID=1873155</wfw:commentRss><description>&lt;p&gt;The equivalent setting on IIS7 is&lt;/p&gt;
&lt;p&gt;%windir%\system32\inetsrv\appcmd.exe set config &amp;quot;Default Web Site&amp;quot; -section:system.webServer/serverRuntime -alternateHostName:&amp;lt;value&amp;gt;&lt;/p&gt;
&lt;p&gt;I would be surprised however&amp;nbsp;if webservices honor this setting when generating urls to send back to the client.&lt;/p&gt;</description></item><item><title>Getting autogenerated URL's to reference an external FQDN and not the server name</title><link>http://forums.iis.net/thread/1873143.aspx</link><pubDate>Thu, 03 Jul 2008 13:11:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873143</guid><dc:creator>rkuite</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1873143.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1047&amp;PostID=1873143</wfw:commentRss><description>&lt;p&gt;Our 2008/IIS 7 server has an internal name of KWST1 but an entirely different external name (kiosk2test).&amp;nbsp;&amp;nbsp; The application uses WCF and&amp;nbsp;has a web service.&amp;nbsp; Any URL generated inside the .svc or the .wsdl reference the internal server name (&lt;a href="https://kwst1.domain-name.com/appname/Service.svc?wsdl"&gt;https://kwst1.domain-name.com/appname/Service.svc?wsdl&lt;/a&gt;) instead of the desired URL of (&lt;a href="https://kiosk2test.domain-name.com/appname/Service.svc?wsdl"&gt;https://kiosk2test.domain-name.com/appname/Service.svc?wsdl&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;In IIS 6.0 we accomplished this through the IIS admin script&lt;br /&gt;cscript adsutil.vbs set w3svc/1/UseHostName true&lt;br /&gt;cscript adsutil.vbs set w3svc/1/SetHostName kiosk2test.domainname.com&lt;/p&gt;
&lt;p&gt;How is this accomplished under IIS 7.0?&lt;/p&gt;
&lt;p&gt;Thanks-&lt;br /&gt;Randy&lt;/p&gt;</description></item></channel></rss>