Skip to content

Commit f6169e0

Browse files
HRaval2HRaval2
HRaval2
authored and
HRaval2
committed
changed the configuration
1 parent aa4f46c commit f6169e0

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
dockerfile: app.dockerfile
99
working_dir: /var/www
1010
volumes:
11-
- ./:/var/www
11+
- ./public:/var/www
1212
- ./php.ini:/usr/local/etc/php/php.ini
1313
environment:
1414
- "DB_PORT=3306"

public/index.php

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
echo "Hello!";
3+
?>

public/phpinfo.php

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
phpinfo();
3+
?>

vhost.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server {
22
listen 80;
33
index index.php index.html;
4-
root /var/www/public;
4+
root /var/www/;
55

66
location / {
77
try_files $uri /index.php?$args;

0 commit comments

Comments
 (0)