Namespace and ClassPath rewrites
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM nginx:latest
|
||||
WORKDIR "/application"
|
||||
RUN mkdir -p /application/core/Configuration
|
||||
RUN mkdir -p /application/Site/Configuration
|
||||
RUN chown -R www-data:www-data /application
|
||||
|
||||
@@ -24,7 +24,7 @@ server {
|
||||
}
|
||||
|
||||
# deny access to specific directories
|
||||
location ~ ^/(files/uploaded|adminPanel|docker|core|test)/.*$ {
|
||||
location ~ ^/(files/uploaded|adminPanel|docker|Site|Core|test)/.*$ {
|
||||
rewrite ^(.*)$ /index.php?site=$1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user