Commit 37ed904f authored by hchs's avatar hchs

add vhost example

parent 94c62405
......@@ -12,6 +12,8 @@ EXPOSE 80 443
WORKDIR /var/www/public
ADD vhost.conf /etc/apache2/sites-enabled/vhost.conf
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
CMD ["supervisord"]
*.conf
!default.conf
!default.apache.conf
<VirtualHost *:80>
ServerName laradock.dev
DocumentRoot /var/www/html/
Options Indexes FollowSymLinks
<Directory "/var/www/html/">
AllowOverride All
<IfVersion < 2.4>
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName sample.dev
DocumentRoot /var/www/sample/public/
Options Indexes FollowSymLinks
<Directory "/var/www/sample/public/">
AllowOverride All
<IfVersion < 2.4>
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
Include /etc/apache2/sites-available/*.conf
......@@ -104,6 +104,7 @@ services:
- applications
volumes:
- ./logs/apache2:/var/log/apache2
- ./apache2/sites:/etc/apache2/sites-available
ports:
- "80:80"
- "443:443"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment