Apache forbidden access with Docker

后端 未结 2 606
萌比男神i
萌比男神i 2021-01-19 19:42

I build this image on docker-compose.yml

version: \'2\'

services:
  webserver:
  build: ./docker/webserver
  image: image_name
  ports:
    - \"80:80\"
             


        
2条回答
  •  死守一世寂寞
    2021-01-19 20:06

    If you change to apache document root to something non-standard outside of /var/www you will need to grant access in your vhost:

    DocumentRoot /workspace/my-project
    
    
        Require all granted
    
    

提交回复
热议问题