fix: use COPY vhost.conf for Apache config instead of heredoc
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
31
Dockerfile
31
Dockerfile
@@ -41,36 +41,7 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
|
|||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
# Apache VirtualHost ayarı
|
# Apache VirtualHost ayarı
|
||||||
RUN cat > /etc/apache2/sites-available/000-default.conf <<'EOF'
|
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||||
<VirtualHost *:80>
|
|
||||||
ServerName localhost
|
|
||||||
ServerAdmin webmaster@localhost
|
|
||||||
|
|
||||||
DocumentRoot /var/www/html/public
|
|
||||||
|
|
||||||
<Directory /var/www/html/public>
|
|
||||||
Options FollowSymLinks
|
|
||||||
AllowOverride All
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Directory /var/www/html>
|
|
||||||
AllowOverride All
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
Alias /uploads /home/uploads
|
|
||||||
|
|
||||||
<Directory /home/uploads>
|
|
||||||
Options FollowSymLinks
|
|
||||||
AllowOverride None
|
|
||||||
Require all granted
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
||||||
</VirtualHost>
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Upload klasörü
|
# Upload klasörü
|
||||||
RUN mkdir -p /home/uploads \
|
RUN mkdir -p /home/uploads \
|
||||||
|
|||||||
28
vhost.conf
Normal file
28
vhost.conf
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName localhost
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
|
||||||
|
DocumentRoot /var/www/html/public
|
||||||
|
|
||||||
|
<Directory /var/www/html/public>
|
||||||
|
Options FollowSymLinks
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory /var/www/html>
|
||||||
|
AllowOverride All
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
Alias /uploads /home/uploads
|
||||||
|
|
||||||
|
<Directory /home/uploads>
|
||||||
|
Options FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
</VirtualHost>
|
||||||
Reference in New Issue
Block a user