{"id":1484,"date":"2013-07-23T18:10:00","date_gmt":"2013-07-23T18:10:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2013\/07\/23\/publish-htmljs-website-to-linuxapache-using-visual-studio\/"},"modified":"2022-08-09T06:19:56","modified_gmt":"2022-08-09T13:19:56","slug":"publish-htmljs-website-to-linuxapache-using-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/publish-htmljs-website-to-linuxapache-using-visual-studio\/","title":{"rendered":"Publish HTML\/JS website to Linux\/Apache using Visual Studio"},"content":{"rendered":"<p>We received a question about how to use Visual Studio to deploy HTML\/JS website to Linux \/ Apache.&nbsp; To do it, you need to create an empty ASP.NET website project in Visual Studio (File-&gt;New Web Site&hellip;) and then include all the HTML\/JS files.<\/p>\n<p>1. Right click on the website Project, select &ldquo;Publish Web Site&rdquo;.<\/p>\n<p>2. Drop down the Publish Profile drop down and select New Profile. Name it &ldquo;FTP&rdquo; or whatever you want to call it.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/0358.clip_image001_thumb_4B5EB1BA.jpg\"><img decoding=\"async\" title=\"clip_image001\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/0358.clip_image001_thumb_4B5EB1BA.jpg\" alt=\"clip_image001\" width=\"613\" height=\"481\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/7120.clip_image002_thumb_4A864BD0.jpg\"><img decoding=\"async\" title=\"clip_image002\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/7120.clip_image002_thumb_4A864BD0.jpg\" alt=\"clip_image002\" width=\"314\" height=\"141\" border=\"0\" \/><\/a><\/p>\n<p>3. On the Connection Tab set Publish method to FTP, fill in FTP server, root folder for the website on the server, user name and password.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/2376.clip_image003_thumb_707BFC26.jpg\"><img decoding=\"async\" title=\"clip_image003\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/2376.clip_image003_thumb_707BFC26.jpg\" alt=\"clip_image003\" width=\"673\" height=\"529\" border=\"0\" \/><\/a><\/p>\n<p>4. Click &ldquo;Validate&rdquo; to see if we can connect.<\/p>\n<p>5. Press the &ldquo;Publish&rdquo; button<\/p>\n<p>&nbsp;<\/p>\n<p>The detailed MSDN topic for VS2012 is <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/dd465337.aspx\">here<\/a>.&nbsp; This functionality exists in <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/dd465337(v=vs.100).aspx\">VS2010<\/a> and <a href=\"http:\/\/www.microsoft.com\/web\/webmatrix\/\">WEBMATRIX<\/a> as well.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We received a question about how to use Visual Studio to deploy HTML\/JS website to Linux \/ Apache.&nbsp; To do it, you need to create an empty ASP.NET website project in Visual Studio (File-&gt;New Web Site&hellip;) and then include all the HTML\/JS files. 1. Right click on the website Project, select &ldquo;Publish Web Site&rdquo;. 2. [&hellip;]<\/p>\n","protected":false},"author":410,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7343,7323,7412],"class_list":["post-1484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-publish","tag-visual-studio-2010","tag-visual-studio-2012"],"acf":[],"blog_post_summary":"<p>We received a question about how to use Visual Studio to deploy HTML\/JS website to Linux \/ Apache.&nbsp; To do it, you need to create an empty ASP.NET website project in Visual Studio (File-&gt;New Web Site&hellip;) and then include all the HTML\/JS files. 1. Right click on the website Project, select &ldquo;Publish Web Site&rdquo;. 2. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/1484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/410"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=1484"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/1484\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=1484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=1484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=1484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}