Skip to content

Commit 1be9df7

Browse files
Fixing apache webroot issue laradock#849
1 parent 8246863 commit 1be9df7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apache2/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ ARG PHP_SOCKET=php-fpm:9000
66

77
ENV WEB_PHP_SOCKET=$PHP_SOCKET
88

9-
ENV WEB_DOCUMENT_ROOT=/var/www/
9+
ENV WEB_DOCUMENT_ROOT=/var/www/public/
1010

1111
EXPOSE 80 443
1212

13-
WORKDIR /var/www/
13+
WORKDIR /var/www/public/
1414

15-
ADD vhost.conf /etc/apache2/sites-enabled/vhost.conf
15+
COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf
1616

1717
ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"]
1818

apache2/sites/default.apache.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<VirtualHost *:80>
22
ServerName laradock.dev
3-
DocumentRoot /var/www/html/
3+
DocumentRoot /var/www/public/
44
Options Indexes FollowSymLinks
55

6-
<Directory "/var/www/html/">
6+
<Directory "/var/www/public/">
77
AllowOverride All
88
<IfVersion < 2.4>
99
Allow from all

0 commit comments

Comments
 (0)