Skip to content

Commit f75141a

Browse files
committed
Support for docker
1 parent 6acda63 commit f75141a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.htaccess

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
RewriteEngine on
22

3-
RewriteCond %{REQUEST_URI} !^/notes/static
4-
RewriteCond %{REQUEST_URI} !^/notes/files/[^/]+/[^/]+\.[^/]+
3+
RewriteCond %{REQUEST_URI} !^/static
4+
RewriteCond %{REQUEST_URI} !^/files/[^/]+/[^/]+\.[^/]+
55

66
RewriteRule ^([^/]*)$ index.php?file=$1 [L,QSA]
77

88

9-
RewriteCond %{REQUEST_URI} !^/notes/static
10-
RewriteCond %{REQUEST_URI} !^/notes/files/[^/]+/[^/]+\.[^/]+
9+
RewriteCond %{REQUEST_URI} !^/static
10+
RewriteCond %{REQUEST_URI} !^/files/[^/]+/[^/]+\.[^/]+
1111

1212
RewriteRule .* "-" [F]
13-

Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM php:apache
2+
3+
# Enable ReWrite module
4+
RUN a2enmod rewrite
5+
6+
COPY . /var/www/html/

0 commit comments

Comments
 (0)