Skip to content

app_container not reachable after restart of app_container if using $path-Variable #198

Description

@tebarius

entrypoint.sh rewrites the .htaccess every time the container is started when using the $path-variable,
for example:
if I set APP_PATH=lb1

the .htaccess inside the container has the following lines:

first start of container:
...
RewriteCond %{REQUEST_URI} !^/lb1/Web(/|$)
RewriteRule ^(.*)$ /lb1/Web/$1 [R=301,L]
....

second start (first restart):
...
RewriteCond %{REQUEST_URI} !^/lb1/lb1/Web(/|$)
RewriteRule ^(.*)$ /lb1/lb1/Web/$1 [R=301,L]
...

third start (second restart):
...
RewriteCond %{REQUEST_URI} !^/lb1/lb1/lb1/Web(/|$)
RewriteRule ^(.*)$ /lb1/lb1/lb1/Web/$1 [R=301,L]
...

so this container only works as long it is not restarted

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions