Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Apache VHost ManagerNew to Visual Studio Code? Get it now.
Apache VHost Manager

Apache VHost Manager

Incredible-Mack

|
3 installs
| (0) | Free
Quickly set up local Apache virtual hosts for Laravel and other PHP projects with one click
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Apache VHost Manager ⚡

VS Code Marketplace License: MIT

One-click Apache virtual host configuration for local development

Demo: Creating a VHost in 3 clicks

Features ✨

  • 🚀 Instant setup - Create vhosts without touching config files
  • 🔍 Laravel detection - Automatically points to /public for Laravel projects
  • 📝 Hosts file sync - Updates C:\Windows\System32\drivers\etc\hosts automatically
  • ♻️ Apache service control - Restarts Apache automatically

Prerequisites

  • VS Code (v1.80+)
  • Apache installed at C:\Apache24 (default path)
  • Projects located in C:\www

Installation

  1. Install via VS Code Marketplace
    Install

  2. Or clone this repository:

    git clone https://github.com/incredible-mack/apache-vhost-manager.git
    cd apache-vhost-manager
    npm install
    npm run package
    Then install the .vsix file via VS Code's extensions view
    
    

Configuration

  1. Customize paths in VS Code settings (Ctrl+,): Search for Apache then update "apacheVhostManager.apachePath": "C:/Apache24", "apacheVhostManager.projectsRoot": "C:/www"

Shortcut

Platform Keybinding Condition Windows/Linux ctrl+shift+a When folder is selected Mac ctrl+shift+a When folder is selected

Users can change the shortcut via: Ctrl+K Ctrl+S (Keyboard Shortcuts) Search for "Create Apache VHost" Right-click → "Change Keybinding"

The shortcut only works when: A folder is selected in Explorer and Not in other views like search or debug

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft