Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/1.3' into 1.3
Browse files Browse the repository at this point in the history
# Conflicts:
#	composer.json
  • Loading branch information
Lukasz Serwatka committed Sep 13, 2016
2 parents 0dfbbeb + 617876d commit 3b94bb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doc/apache2/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Example config for Apache 2.4 in prefork mode:
# Additional Assetic rules for environments different from dev,
# remember to run php app/console assetic:dump --env=prod
RewriteCond %{ENV:SYMFONY_ENV} !^(dev)
RewriteRule ^/(css|js|font)/.*\.(css|js|otf|eot|ttf|svg|woff) - [L]
RewriteRule ^/(css|js|fonts?)/.*\.(css|js|otf|eot|ttf|svg|woff) - [L]

RewriteRule .* /app.php
</VirtualHost>
Expand Down Expand Up @@ -125,7 +125,7 @@ If you do not have an access to use virtualhost config, use the `.htaccess` file
# Additional Assetic rules for prod environments
# ! Remember to run php ezpublish/console assetic:dump --env=prod on changes
# ! Or if SYMFONY_ENV is set to "dev", comment this out!
RewriteRule ^(css|js|font)/.*\.(css|js|otf|eot|ttf|svg|woff) - [L]
RewriteRule ^(css|js|fonts?)/.*\.(css|js|otf|eot|ttf|svg|woff) - [L]

# Rewrite all other queries to the front controller.
RewriteRule .* app.php
Expand Down
2 changes: 1 addition & 1 deletion doc/apache2/vhost.template
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
# Additional Assetic rules for environments different from dev,
# remember to run php app/console assetic:dump --env=prod
RewriteCond %{ENV:SYMFONY_ENV} !^(dev)
RewriteRule ^/(css|js|font)/.*\.(css|js|otf|eot|ttf|svg|woff) - [L]
RewriteRule ^/(css|js|fonts?)/.*\.(css|js|otf|eot|ttf|svg|woff) - [L]

RewriteRule .* /app.php
</IfModule>
Expand Down
11 changes: 5 additions & 6 deletions doc/nginx/ez_params.d/ez_prod_rewrite_params
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
## and make sure to comment these out in DEV environment.
rewrite "^/css/(.*)\.css" "/css/$1.css" break;
rewrite "^/js/(.*)\.js" "/js/$1.js" break;
rewrite "^/font/(.*)\.ttf" "/font/$1.ttf" break;
rewrite "^/font/(.*)\.woff" "/font/$1.woff" break;
rewrite "^/font/(.*)\.otf" "/font/$1.otf" break;
rewrite "^/font/(.*)\.eot" "/font/$1.eot" break;
rewrite "^/font/(.*)\.svg" "/font/$1.svg" break;

rewrite "^/fonts?/(.*)\.ttf" "/font$1/$2.ttf" break;
rewrite "^/fonts?/(.*)\.woff" "/font$1/$2.woff" break;
rewrite "^/fonts?/(.*)\.otf" "/font$1/$2.otf" break;
rewrite "^/fonts?/(.*)\.eot" "/font$1/$2.eot" break;
rewrite "^/fonts?/(.*)\.svg" "/font$1/$2.svg" break;

0 comments on commit 3b94bb9

Please sign in to comment.