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: |
Description
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 , 7 years ago
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Mapbender-3.0.6.3 is working well with the new MS4W-3.2.3-beta release (https://www.ms4w.com/release/experimental/ms4w_3.2.3-beta1.zip), and it points to the production app.php.
Closing this ticket.
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:
Should I leave that, or should I use the exact lines you mention in this ticket?