---
title: "Discussion on \"Virtual Host for Laravel with apache2\" | Hashnode"
description: "Discussion on \"Virtual Host for Laravel with apache2\". You have new Linux PC with fresh apache2 installation. Now you don't know how to point to your Laravel site? Let's follow the below steps.\nAdd your desired domain name in /etc/hosts (example: myblog.test you can give anything here and you should put ..."
url: "https://hashnode.com/posts/virtual-host-for-laravel-with-apache2/62fc841a0cfd6de8c7d76ae5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Virtual Host for Laravel with apache2](https://notes.sohag.pro/virtual-host-for-laravel-with-apache2?utm_source=hashnode&utm_medium=feed)

You have new Linux PC with fresh apache2 installation. Now you don't know how to point to your Laravel site? Let's follow the below steps. Add your desired domain name in /etc/hosts (example: myblog.test you can give anything here and you should put ...

Aug 4, 2022 · 1 min read · notes.sohag.pro  
Updated Oct 22, 2024  
Read the article

-   [#apache](https://hashnode.com/tag/apache)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#virtual-host](https://hashnode.com/tag/virtual-host)

## Written by

[Sohag Hasan](https://hashnode.com/@sohag)

@sohag · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@sohag)

Tech Lead at MobyPay | Certified Laravel Developer | PHP JS GO | DevOps Enthusiast | Open to projects

WhoAmI =&gt; notes.sohag.pro/author

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
