Fix
This commit is contained in:
16
docker/apache/entrypoint.sh
Executable file
16
docker/apache/entrypoint.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Включаем модули Apache
|
||||
a2enmod rewrite
|
||||
a2enmod headers
|
||||
|
||||
# Добавляем admin в hosts
|
||||
echo "127.0.0.1 admin" >> /etc/hosts
|
||||
|
||||
# Активируем виртуальный хост
|
||||
a2ensite 000-default
|
||||
|
||||
# Запускаем Apache
|
||||
exec apache2-foreground
|
||||
|
||||
Reference in New Issue
Block a user