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