|
@@ -36,7 +36,13 @@ server {
|
|
}
|
|
}
|
|
|
|
|
|
location /webmum {
|
|
location /webmum {
|
|
- try_files $uri $uri/ /webmum/index.php?$args;
|
|
|
|
|
|
+ try_files $uri $uri/ /webmum/index.php?$args;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # protect the codebase by denying direct access
|
|
|
|
+ location ^~ /webmum/include/php {
|
|
|
|
+ deny all;
|
|
|
|
+ return 403;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
|
@@ -59,7 +65,13 @@ server {
|
|
}
|
|
}
|
|
|
|
|
|
location / {
|
|
location / {
|
|
- try_files $uri $uri/ /index.php?$args;
|
|
|
|
|
|
+ try_files $uri $uri/ /index.php?$args;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # protect the codebase by denying direct access
|
|
|
|
+ location ^~ /include/php {
|
|
|
|
+ deny all;
|
|
|
|
+ return 403;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
|
@@ -104,6 +116,10 @@ Without subdirectory in URL (e.g. `http://webmum.mydomain.tld/`):
|
|
</VirtualHost>
|
|
</VirtualHost>
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+Access to the codebase is denied with a `.htaccess` file under ^/include/php^.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
## WebMUM Configuration
|
|
## WebMUM Configuration
|
|
|
|
|
|
Configure WebMUM via the configuration file at `config/config.inc.php`.
|
|
Configure WebMUM via the configuration file at `config/config.inc.php`.
|