fix
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
#!/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
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
ServerName admin
|
||||
ServerAlias localhost
|
||||
DocumentRoot /var/www/html
|
||||
|
||||
# Alias для пути /cite_practica/
|
||||
Alias /cite_practica /var/www/html/cite_practica
|
||||
|
||||
<Directory /var/www/html>
|
||||
@@ -19,13 +17,10 @@
|
||||
DirectoryIndex cite_mebel.php index.php index.html
|
||||
</Directory>
|
||||
|
||||
# Настройка PHP
|
||||
<FilesMatch \.php$>
|
||||
SetHandler application/x-httpd-php
|
||||
</FilesMatch>
|
||||
|
||||
# Логи
|
||||
ErrorLog ${APACHE_LOG_DIR}/cite_practica_error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/cite_practica_access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user