Move development files to devel directory

This commit is contained in:
Ruben 2025-11-02 14:36:25 +01:00
parent 6647d0c964
commit 3e303ceda8
3 changed files with 0 additions and 0 deletions

30
devel/apache/custom.conf Normal file
View file

@ -0,0 +1,30 @@
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Alias for app assets (more specific aliases must come first)
Alias /app/default-styles /var/www/app/default/styles
Alias /app/styles /var/www/custom/styles
Alias /app/fonts /var/www/custom/fonts
# Alias for app directory (general fallback)
Alias /app /var/www/app
<Directory /var/www/custom/styles>
Require all granted
</Directory>
<Directory /var/www/custom/fonts>
Require all granted
</Directory>
<Directory /var/www/app/default/styles>
Require all granted
</Directory>
# Enable mod_rewrite
<IfModule !mod_rewrite.c>
LoadModule rewrite_module modules/mod_rewrite.so
</IfModule>

20
devel/apache/default.conf Normal file
View file

@ -0,0 +1,20 @@
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex disabled
# Route all requests through the router
RewriteEngine On
# Don't rewrite if it's already going to /app/
RewriteCond %{REQUEST_URI} !^/app/
RewriteRule ^(.*)$ /app/router.php [L,QSA]
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

27
devel/compose.yaml Normal file
View file

@ -0,0 +1,27 @@
version: '3.8'
services:
# custom:
# image: php:8.3.12-apache
# container_name: folderweb-custom
# working_dir: /var/www/html/
# volumes:
# - ../app:/var/www/app:z
# - ../content:/var/www/html:z
# - ../custom:/var/www/custom:z
# - ../docs:/var/www/html/docs:z
# - ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
# ports:
# - "4040:80"
# command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"
default:
image: php:8.4.14-apache
container_name: folderweb-default
working_dir: /var/www/html/
volumes:
- ../app:/var/www/app:z
- ./apache/custom.conf:/etc/apache2/conf-available/custom.conf:z
- ./apache/default.conf:/etc/apache2/sites-available/000-default.conf:z
ports:
- "8080:80"
command: bash -c "a2enconf custom && a2enmod rewrite && apache2-foreground"