Kufrik/deploy/apache-vhost.conf.example

34 lines
937 B
Plaintext

# Ukázkový Apache vhost pro Ubuntu.
# DocumentRoot musí mířit na Deployer symlink current/www.
#
# 1) Zkopíruj do /etc/apache2/sites-available/kufrik.conf
# 2) Uprav ServerName a cesty
# 3) a2ensite kufrik && systemctl reload apache2
#
# V php.ini (nebo poolu) nastav:
# opcache.revalidate_path=1
# jinak Apache po symlinku current neuvidí novou release.
<VirtualHost *:80>
ServerName kufrik.example.cz
DocumentRoot /var/www/kufrik/current/www
<Directory /var/www/kufrik/current/www>
AllowOverride All
Require all granted
Options -Indexes +FollowSymLinks
</Directory>
# Zbytek projektu (app/, config/, vendor/, …) nesmí být webově dostupný.
<Directory /var/www/kufrik/current>
Require all denied
</Directory>
<Directory /var/www/kufrik/current/www>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/kufrik-error.log
CustomLog ${APACHE_LOG_DIR}/kufrik-access.log combined
</VirtualHost>