Reviewed-on: https://gitea.subcultureofone.org/greg/tkr/pulls/65 Co-authored-by: Greg Sarjeant <greg@subcultureofone.org> Co-committed-by: Greg Sarjeant <greg@subcultureofone.org>
31 lines
785 B
Plaintext
31 lines
785 B
Plaintext
# Basic Apache config for tkr in subfolder
|
|
# e.g. https://your-domain.com/tkr
|
|
# Add this to your existing VirtualHost configuration
|
|
|
|
# Alias for tkr subfolder
|
|
Alias /tkr /var/www/tkr/public
|
|
|
|
<Directory "/var/www/tkr/public">
|
|
AllowOverride None
|
|
Require all granted
|
|
|
|
# Front controller pattern
|
|
RewriteEngine On
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*)$ /tkr/index.php [L]
|
|
</Directory>
|
|
|
|
# Block access to sensitive directories
|
|
<Directory "/var/www/tkr/storage">
|
|
Require all denied
|
|
</Directory>
|
|
<Directory "/var/www/tkr/src">
|
|
Require all denied
|
|
</Directory>
|
|
<Directory "/var/www/tkr/config">
|
|
Require all denied
|
|
</Directory>
|
|
<Directory "/var/www/tkr/templates">
|
|
Require all denied
|
|
</Directory> |