Skip to content

Instantly share code, notes, and snippets.

@phmLabs
Created April 1, 2019 07:15
Show Gist options
  • Save phmLabs/cc9e1368a5f4cad127b64ab2c919ecfa to your computer and use it in GitHub Desktop.
Save phmLabs/cc9e1368a5f4cad127b64ab2c919ecfa to your computer and use it in GitHub Desktop.
Vhost config for apache
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
UseCanonicalName Off
<Directory />
Options FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from All
Require all granted
</Directory>
VirtualDocumentRoot "/var/www/vhosts/%0/web"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment