Skip to content
Snippets Groups Projects
Verified Commit bfb8d1eb authored by David Beniamine's avatar David Beniamine
Browse files

Set X-FRAMA-SITE correctly

parent 816bbbc2
No related branches found
No related tags found
No related merge requests found
......@@ -32,19 +32,17 @@ Adapt this file and add it to `/etc/apache2/sites-available/mysite.conf` (replac
```apache2
<VirtualHost *:80>
ServerName mysite.fqdn
ServerAlias mysecondsite.fqdn
ServerAlias mythirdsite.fqdn
#ProxyVia On
#ProxyRequests On
ProxyPreserveHost on
Header set X-FRAMA-SITE mysite.fqdn
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
CustomLog ${APACHE_LOG_DIR}/mysite.tetras-libre.access.log combined
ErrorLog ${APACHE_LOG_DIR}/mysite-libre.error.log
CustomLog ${APACHE_LOG_DIR}/noemie.access.log combined
ErrorLog ${APACHE_LOG_DIR}/noemie-libre.error.log
</VirtualHost>
```
Finaly run `certbot` to use HTTPS
......@@ -25,5 +25,6 @@ RUN git clone https://framagit.org/framasoft/PrettyNoemieCMS html
WORKDIR /var/www/html
RUN /usr/local/bin/composer.phar install
RUN chown -R www-data /var/www/html/
RUN echo "SetEnv X-FRAMA-SITE" >> /var/www/html/.htaccess
RUN a2enmod rewrite
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment