Opened 7 years ago

Closed 7 years ago

#126 closed enhancement (fixed)

[Mapbender] Link to app.php instead app_dev.php

Reported by: Axel Schaefer Owned by: Jeff McKenna
Priority: enhancement Milestone: 3.2.3 release
Component: MS4W - Packages Version: 3.2.2
Keywords: mapbender Cc:
Blocked By: Blocking:


A small issue with Mapbender:

In mapbender.pkg.html:

It is better to link to /mapbender/app.php/ instead of /mapbender/app_dev.php/

The app.php is production mode, the app_dev.php is development mode. App-mode is faster because it uses the caches more efficient. Dev-Mode is slower because it omits some of the caches and creates new file in it.

Prod-Mode is to let your application run. Dev-Mode is for debugging or if you - for example - change the Twig-Templates of an application and you don't want to clear the cache all the time.

For MS4W I assume prod-mode is sufficient.

You could also make use of the rewrite engine in httpd_mapbender.conf but you have to change the Rewrite Conditions and Rewrite Rules.

 RewriteEngine On
 RewriteBase /mapbender/
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ app.php [QSA,L]

Change History (2)

comment:1 by Jeff McKenna, 7 years ago

Thanks! (sorry, my brain is now back from FOSS4G events ha)

I've made the change in the package to point to the Prod-Mode app.php

Regarding the rewrite engine in httpd_mapbender.conf, here is what already exists:

 RewriteEngine On
 RewriteBase /mapbender/
 RewriteCond %{ENV:REDIRECT_STATUS} ^$
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ app.php/$1 [PT,L,QSA]

Should I leave that, or should I use the exact lines you mention in this ticket?

comment:2 by Jeff McKenna, 7 years ago

Resolution: fixed
Status: newclosed

Mapbender- is working well with the new MS4W-3.2.3-beta release (, and it points to the production app.php.

Closing this ticket.

Note: See TracTickets for help on using tickets.