fix: [doc] webroot has no app parent folder

pull/9215/head
Christophe Vandeplas 2023-06-25 19:39:35 +00:00
parent adf08d4b45
commit bc0bf0bede
11 changed files with 27 additions and 27 deletions

View File

@ -19,8 +19,8 @@
<VirtualHost *:443>
ServerAdmin serveradmin@misp.local
ServerName misp.local
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Require all granted

View File

@ -1,8 +1,8 @@
<VirtualHost *:80>
ServerAdmin me@me.local
ServerName misp.local
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny

View File

@ -16,8 +16,8 @@
<VirtualHost *:443>
ServerAdmin me@me.local
ServerName misp.local
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny

View File

@ -1,8 +1,8 @@
<VirtualHost *:80>
ServerAdmin me@me.local
ServerName misp.local
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny

View File

@ -602,7 +602,7 @@
'custom_css' => [
'name' => __('Custom CSS filename'),
'type' => 'string',
'description' => __('If you would like to customise the css, simply drop a css file in the /var/www/MISP/app/webroot/css directory and enter the name here.'),
'description' => __('If you would like to customise the css, simply drop a css file in the /var/www/MISP/webroot/css directory and enter the name here.'),
'default' => '',
'test' => 'testForStyleFile',
],

View File

@ -21,13 +21,13 @@ chmod 440 /var/www/MISP/.smime/*
## Export the public certificate (for Encipherment) to the webroot
```bash
cp public_certificate.pem /var/www/MISP/app/webroot/public_certificate.pem
cp public_certificate.pem /var/www/MISP/webroot/public_certificate.pem
```
Due to this action, the MISP users will be able to download your public certificate (for Encipherment) by clicking on the footer
### Set permissions
```bash
chown www-data:www-data /var/www/MISP/app/webroot/public_certificate.pem
chmod 440 /var/www/MISP/app/webroot/public_certificate.pem
chown www-data:www-data /var/www/MISP/webroot/public_certificate.pem
chmod 440 /var/www/MISP/webroot/public_certificate.pem
```
## Configure the section "SMIME" in the server settings (Administration -> Server settings -> Encryption tab)

View File

@ -357,8 +357,8 @@ apacheConfig () {
<VirtualHost <IP, FQDN, or *>:443>
ServerAdmin admin@<your.FQDN.here>
ServerName <your.FQDN.here>
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny

View File

@ -347,8 +347,8 @@ apacheConfig () {
<VirtualHost <IP, FQDN, or *>:443>
ServerAdmin admin@<your.FQDN.here>
ServerName <your.FQDN.here>
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny

View File

@ -280,7 +280,7 @@ sudo -u www sh -c "mysql -u misp -pmisp < /var/www/htdocs/MISP/INSTALL/MYSQL.sql
### 6/ Apache configuration
-----------------------
```bash
# Now configure your Apache webserver with the DocumentRoot /var/www/htdocs/MISP/app/webroot/
# Now configure your Apache webserver with the DocumentRoot /var/www/htdocs/MISP/webroot/
#2.4
sudo /usr/pkg/etc/httpd/sites-available /usr/pkg/etc/httpd/sites-enabled
@ -316,8 +316,8 @@ sudo openssl req -newkey rsa:4096 -days 3650 -nodes -x509 \
<VirtualHost <IP, FQDN, or *>:443>
ServerAdmin admin@<your.FQDN.here>
ServerName <your.FQDN.here>
DocumentRoot /var/www/htdocs/MISP/app/webroot
<Directory /var/www/htdocs/MISP/app/webroot>
DocumentRoot /var/www/htdocs/MISP/webroot
<Directory /var/www/htdocs/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny

View File

@ -143,7 +143,7 @@ server "default" {
listen on $ext_addr port 80
listen on $ext_addr tls port 443
root "/htdocs/MISP/app/webroot"
root "/htdocs/MISP/webroot"
tls {
key "/etc/ssl/private/server.key"
@ -422,7 +422,7 @@ ${SUDO_WWW} sh -c "mysql -u misp -p${DBPASSWORD_MISP} misp < /var/www/htdocs/MIS
### 6/ Apache configuration (optional)
-----------------------
```bash
# Now configure your Apache webserver with the DocumentRoot /var/www/htdocs/MISP/app/webroot/
# Now configure your Apache webserver with the DocumentRoot /var/www/htdocs/MISP/webroot/
#2.4
doas mkdir /etc/apache2/sites-available/ /etc/apache2/sites-enabled/
@ -461,8 +461,8 @@ doas mkdir /var/log/apache2/
<VirtualHost <IP, FQDN, or *>:443>
ServerAdmin admin@<your.FQDN.here>
ServerName <your.FQDN.here>
DocumentRoot /var/www/htdocs/MISP/app/webroot
<Directory /var/www/htdocs/MISP/app/webroot>
DocumentRoot /var/www/htdocs/MISP/webroot
<Directory /var/www/htdocs/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny
@ -585,7 +585,7 @@ doas gpg2 --homedir /var/www/htdocs/MISP/.gnupg --batch --gen-key /tmp/gen-key-s
# The email address should match the one set in the config.php / set in the configuration menu in the administration menu configuration file
# And export the public key to the webroot
doas sh -c "gpg2 --homedir /var/www/htdocs/MISP/.gnupg --export --armor $GPG_EMAIL_ADDRESS > /var/www/htdocs/MISP/app/webroot/gpg.asc"
doas sh -c "gpg2 --homedir /var/www/htdocs/MISP/.gnupg --export --armor $GPG_EMAIL_ADDRESS > /var/www/htdocs/MISP/webroot/gpg.asc"
# To make the background workers start on boot
doas chmod +x /var/www/htdocs/MISP/app/Console/worker/start.sh

View File

@ -5,7 +5,7 @@
### -1/ Installer and Manual install instructions
Make sure you are reading the parsed version of this Document. When in doubt [click here](https://misp.github.io/MISP/INSTALL.ubuntu2004/).
Make sure you are reading the parsed version of this Document. When in doubt [click here](https://misp.github.io/MISP/INSTALL.ubuntu2204/).
### 0/ MISP Ubuntu 22.04-server install - status
-------------------------
@ -362,8 +362,8 @@ apacheConfig () {
<VirtualHost <IP, FQDN, or *>:443>
ServerAdmin admin@<your.FQDN.here>
ServerName <your.FQDN.here>
DocumentRoot /var/www/MISP/app/webroot
<Directory /var/www/MISP/app/webroot>
DocumentRoot /var/www/MISP/webroot
<Directory /var/www/MISP/webroot>
Options -Indexes
AllowOverride all
Order allow,deny