{"id":1768,"date":"2024-02-10T09:14:15","date_gmt":"2024-02-10T09:14:15","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=1768"},"modified":"2024-02-29T09:18:08","modified_gmt":"2024-02-29T09:18:08","slug":"how-to-create-multiple-virtual-host-in-laravel","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/","title":{"rendered":"How to Create Multiple Virtual Host in Laravel"},"content":{"rendered":"\n<p id=\"7089\">In this tutorial I&#8217;m going to create multiple virtual host in laravel in some easy steps please follow mentioned below.<\/p>\n\n\n\n<p id=\"62e9\">first stop your xampp \ud83d\udc47<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"dd33\">1step-&gt; Go to<\/p>\n\n\n\n<p id=\"34a3\">C:\\xampp\\htdocs<\/p>\n\n\n\n<p id=\"8e04\">ds-admin-ms is your project folder name<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ds-admin-ms<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*s6fKDvbI7h7k0n2jIln7yw.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"e456\">2nd step go to<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\xampp\\apache\\conf\\extra<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*f7jzBBiR2zor55Xg9byMUA.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"efc7\">3rd step Open this file -&gt; httpd-vhosts.conf<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*E-6Alz0E9VROnEXxiOYgLg.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"9305\">4th step Copy below code \ud83d\udc47\ud83d\udc47<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80><br>DocumentRoot \"C:\\xampp\\htdocs\\ds-admin-ms\\public\"<br>ServerName ds-admin-ms<br>ServerAlias ds-admin-ms<br>&lt;Directory \"c:\/xampp\/htdocs\/ds-admin-ms\/public\"><br>Order allow,deny<br>Allow from all<br>&lt;\/Directory><br>&lt;\/VirtualHost><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*RmVtKv9vuknDW4KspI5-Tg.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*onCmom3WKY1rXpf86_Oorg.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"67e4\">Next step go to<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Windows\\System32\\drivers\\etc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Open this file -&gt; hosts<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*rVHXIV_EuMuZ-7PJbiXJSQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"816e\">Simply copy below code \ud83d\udc47<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127.0.0.1 ds-admin-ms<br>::1<\/code><\/pre>\n\n\n\n<p id=\"bdb7\">Paste here in C:\\Windows\\System32\\drivers\\etc and open this file \ud83d\udc49 hosts<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*hezfZM4WRk7wQpuuDt9ppA.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"45d1\">Lets go to xampp and start run<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*jmSBxmett4_shyDvOe_T1g.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"9291\">and go to folder -&gt; C:\\xampp\\htdocs\\ds-admin-ms<\/p>\n\n\n\n<p id=\"6ab5\">and open terminal and runphp artisan serve<\/p>\n\n\n\n<p id=\"0df8\">Next go to browser and paste thishttp:\/\/ds-admin-ms\/<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*cTwgWXvwzs9l92IGQt8KwQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p id=\"a72c\">I Hope its helpfull for you.<\/p>\n\n\n\n<p><a href=\"https:\/\/laravelamit.medium.com\/?source=post_page-----8127230b28d0--------------------------------\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial I&#8217;m going to create multiple virtual host in laravel in some easy steps please follow mentioned below. first stop your xampp \ud83d\udc47 1step-&gt; Go&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[702,3,701],"class_list":["post-1768","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-how-to-create-virtual-host-in-laravel","tag-laravel","tag-laravel-virtual-host"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create Multiple Virtual Host in Laravel - DevOps Freelancer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Multiple Virtual Host in Laravel - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"In this tutorial I&#8217;m going to create multiple virtual host in laravel in some easy steps please follow mentioned below. first stop your xampp \ud83d\udc47 1step-&gt; Go...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Freelancer\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/amitsthakurs\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-10T09:14:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-29T09:18:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png\" \/>\n<meta name=\"author\" content=\"Amit Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/amits_thakurs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/\",\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/\",\"name\":\"How to Create Multiple Virtual Host in Laravel - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png\",\"datePublished\":\"2024-02-10T09:14:15+00:00\",\"dateModified\":\"2024-02-29T09:18:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#primaryimage\",\"url\":\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png\",\"contentUrl\":\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.devopsfreelancer.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Multiple Virtual Host in Laravel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#website\",\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/\",\"name\":\"DevOps Freelancer\",\"description\":\"We provide DevOps | SRE | DevSecOps | MLOps Freelancing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"caption\":\"Amit Kumar\"},\"description\":\"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.\",\"sameAs\":[\"https:\/\/www.facebook.com\/amitsthakurs\/\",\"https:\/\/www.instagram.com\/amits_thakurs\/\",\"https:\/\/www.linkedin.com\/in\/amits-thakurs\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs\"],\"url\":\"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Multiple Virtual Host in Laravel - DevOps Freelancer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Multiple Virtual Host in Laravel - DevOps Freelancer","og_description":"In this tutorial I&#8217;m going to create multiple virtual host in laravel in some easy steps please follow mentioned below. first stop your xampp \ud83d\udc47 1step-&gt; Go...","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2024-02-10T09:14:15+00:00","article_modified_time":"2024-02-29T09:18:08+00:00","og_image":[{"url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png","type":"","width":"","height":""}],"author":"Amit Kumar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/amits_thakurs","twitter_misc":{"Written by":"Amit Kumar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/","name":"How to Create Multiple Virtual Host in Laravel - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png","datePublished":"2024-02-10T09:14:15+00:00","dateModified":"2024-02-29T09:18:08+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#primaryimage","url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png","contentUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*camhH70j6H3HXkQRKo6RZw.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-create-multiple-virtual-host-in-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create Multiple Virtual Host in Laravel"}]},{"@type":"WebSite","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website","url":"https:\/\/www.devopsfreelancer.com\/blog\/","name":"DevOps Freelancer","description":"We provide DevOps | SRE | DevSecOps | MLOps Freelancing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b","name":"Amit Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","caption":"Amit Kumar"},"description":"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.","sameAs":["https:\/\/www.facebook.com\/amitsthakurs\/","https:\/\/www.instagram.com\/amits_thakurs\/","https:\/\/www.linkedin.com\/in\/amits-thakurs\/","https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs"],"url":"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=1768"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1768\/revisions"}],"predecessor-version":[{"id":1769,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1768\/revisions\/1769"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=1768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=1768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=1768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}