Skip to content

Instantly share code, notes, and snippets.

@piotrlewandowski
Forked from jcavat/.htaccess
Created June 11, 2019 14:12
Show Gist options
  • Save piotrlewandowski/a8961f2a42967a9f7dcb46ac09631813 to your computer and use it in GitHub Desktop.
Save piotrlewandowski/a8961f2a42967a9f7dcb46ac09631813 to your computer and use it in GitHub Desktop.

Revisions

  1. @jcavat jcavat revised this gist Mar 20, 2018. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <IfModule mod_rewrite.c>
    Options Indexes FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.html$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.html [L]
    </IfModule>
  2. @jcavat jcavat revised this gist Jun 2, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions cp.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    docker cp ../abaplan-core/index.html abaplans_www_1:/var/www/html/
    docker cp ../abaplan-core/assets/ abaplans_www_1:/var/www/html/
    docker cp ../abaplan-core/dist/ abaplans_www_1:/var/www/html/
    docker cp ../abaplan-core/i18n/ abaplans_www_1:/var/www/html/
    docker cp .htaccess abaplans_www_1:/var/www/html/
    docker exec abaplans_www_1 sh -c 'rm /var/www/html/dist/*.js.map'
  3. @jcavat jcavat created this gist Jun 2, 2017.
    2 changes: 2 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    FROM php:7.1.2-apache
    RUN a2enmod rewrite
    6 changes: 6 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    version: "2"
    services:
    www:
    build: .
    ports:
    - "8080:80"