Files
web_work/apache-vhost-windows.conf
kirill.khorkov 7f876b5c4a chore: Update Docker configuration and app config
- Modified docker-compose.yml (port/environment changes)
- Updated config/app.php
- Added apache-vhost-windows.conf for Windows setup
2026-01-06 17:07:14 +03:00

51 lines
1.6 KiB
Plaintext

<VirtualHost *:80>
ServerAdmin admin@aeterna.local
# ВАЖНО: Замените этот путь на полный путь к вашему проекту
# Пример: C:/Users/YourUsername/Desktop/cite_practica1
DocumentRoot "C:/path/to/cite_practica1/public"
ServerName aeterna.local
ServerAlias www.aeterna.local
# Настройка директории public
<Directory "C:/path/to/cite_practica1/public">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
# Включение .htaccess для роутинга
DirectoryIndex index.php
</Directory>
# Алиас для загруженных файлов
Alias /uploads "C:/path/to/cite_practica1/storage/uploads"
<Directory "C:/path/to/cite_practica1/storage/uploads">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
# Логи (путь к логам Apache на Windows обычно logs/ в папке Apache)
ErrorLog logs/aeterna-error.log
CustomLog logs/aeterna-access.log combined
# Кодировка по умолчанию
AddDefaultCharset UTF-8
# MIME типы
AddType text/css .css
AddType text/less .less
AddType text/javascript .js
AddType image/svg+xml .svg
AddType image/webp .webp
AddType image/jpeg .jpg .jpeg
AddType image/png .png
# Настройки PHP (если используется mod_php)
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
</VirtualHost>