Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretty Noemie CMS docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tetras-libre
Pretty Noemie CMS docker
Commits
bfb8d1eb
Verified
Commit
bfb8d1eb
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Set X-FRAMA-SITE correctly
parent
816bbbc2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Readme.md
+4
-6
4 additions, 6 deletions
Readme.md
docker/Dockerfile
+1
-0
1 addition, 0 deletions
docker/Dockerfile
with
5 additions
and
6 deletions
Readme.md
+
4
−
6
View file @
bfb8d1eb
...
...
@@ -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-libr
e.access.log combined
ErrorLog ${APACHE_LOG_DIR}/
mysit
e-libre.error.log
CustomLog ${APACHE_LOG_DIR}/
noemi
e.access.log combined
ErrorLog ${APACHE_LOG_DIR}/
noemi
e-libre.error.log
</VirtualHost>
```
Finaly run
`certbot`
to use HTTPS
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
1
−
0
View file @
bfb8d1eb
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment