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
47500194
Verified
Commit
47500194
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Add correct htaccess
parent
ad4519dd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile
+1
-1
1 addition, 1 deletion
docker/Dockerfile
docker/htaccess
+22
-0
22 additions, 0 deletions
docker/htaccess
with
23 additions
and
1 deletion
docker/Dockerfile
+
1
−
1
View file @
47500194
...
...
@@ -25,6 +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
COPY
htaccess
/var/www/html/.htaccess
RUN
a2enmod rewrite
This diff is collapsed.
Click to expand it.
docker/htaccess
0 → 100644
+
22
−
0
View file @
47500194
# Enable rewrite engine and route requests to framework
RewriteEngine On
# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(medias/.*)$ /sites/%{HTTP_HOST}/$1 [L]
RewriteRule ^(tmp)\/|\.ini$ - [R=404]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
SetEnv X-FRAMA-SITE
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