docker容器,php-apache镜像,开启rewrite模块

1、apache2开启rewrite模块

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load

2、重启docker容器,containId为容器名字或容器Id

docker restart containId

apache2配置文件结构:

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#	/etc/apache2/
#	|-- apache2.conf
#	|	`--  ports.conf
#	|-- mods-enabled
#	|	|-- *.load
#	|	`-- *.conf
#	|-- conf-enabled
#	|	`-- *.conf
# 	`-- sites-enabled
#	 	`-- *.conf

你可能感兴趣的:(php,docker,apache,docker,php)