Skip to content

Commit b8d87da

Browse files
committed
Adding apache pack
1 parent 09cde10 commit b8d87da

File tree

8 files changed

+646
-2
lines changed

8 files changed

+646
-2
lines changed

Gemfile.lock

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
GIT
2+
remote: git://github.com/capistrano/symfony.git
3+
revision: b702167e0bf434ee3a531378ca75d96df7bf98ec
4+
specs:
5+
capistrano-symfony (1.0.0.rc2)
6+
capistrano (~> 3.1)
7+
capistrano-composer (~> 0.0.3)
8+
capistrano-file-permissions (~> 1.0)
9+
10+
GEM
11+
remote: https://rubygems.org/
12+
specs:
13+
airbrussh (1.3.0)
14+
sshkit (>= 1.6.1, != 1.7.0)
15+
capistrano (3.10.1)
16+
airbrussh (>= 1.0.0)
17+
i18n
18+
rake (>= 10.0.0)
19+
sshkit (>= 1.9.0)
20+
capistrano-composer (0.0.6)
21+
capistrano (>= 3.0.0.pre)
22+
capistrano-file-permissions (1.0.0)
23+
capistrano (~> 3.0)
24+
concurrent-ruby (1.0.5)
25+
i18n (0.9.3)
26+
concurrent-ruby (~> 1.0)
27+
net-scp (1.2.1)
28+
net-ssh (>= 2.6.5)
29+
net-ssh (4.2.0)
30+
rake (12.3.0)
31+
sshkit (1.16.0)
32+
net-scp (>= 1.1.2)
33+
net-ssh (>= 2.8.0)
34+
35+
PLATFORMS
36+
ruby
37+
38+
DEPENDENCIES
39+
capistrano (~> 3.10)
40+
capistrano-composer
41+
capistrano-symfony (~> 1.0.0.rc1)!
42+
43+
BUNDLED WITH
44+
1.16.1

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"php": "^7.1.3",
66
"ext-iconv": "*",
77
"sensio/framework-extra-bundle": "^5.1",
8+
"symfony/apache-pack": "^1.0",
89
"symfony/console": "^4.0",
910
"symfony/debug-pack": "^1.0",
1011
"symfony/dotenv": "^4.0",
@@ -60,7 +61,7 @@
6061
"extra": {
6162
"symfony": {
6263
"id": "01C5P8JNB2XVX57TXDK9R9X8NE",
63-
"allow-contrib": false
64+
"allow-contrib": true
6465
}
6566
}
6667
}

composer.lock

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/translation.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
framework:
2+
default_locale: '%locale%'
3+
translator:
4+
paths:
5+
- '%kernel.project_dir%/translations'
6+
fallbacks:
7+
- '%locale%'

log/capistrano.log

Lines changed: 493 additions & 0 deletions
Large diffs are not rendered by default.

public/.htaccess

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Use the front controller as index file. It serves as a fallback solution when
2+
# every other rewrite/redirect fails (e.g. in an aliased environment without
3+
# mod_rewrite). Additionally, this reduces the matching process for the
4+
# start page (path "/") because otherwise Apache will apply the rewriting rules
5+
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
6+
DirectoryIndex index.php
7+
8+
# By default, Apache does not evaluate symbolic links if you did not enable this
9+
# feature in your server configuration. Uncomment the following line if you
10+
# install assets as symlinks or if you experience problems related to symlinks
11+
# when compiling LESS/Sass/CoffeScript assets.
12+
# Options FollowSymlinks
13+
14+
# Disabling MultiViews prevents unwanted negotiation, e.g. "/index" should not resolve
15+
# to the front controller "/index.php" but be rewritten to "/index.php/index".
16+
<IfModule mod_negotiation.c>
17+
Options -MultiViews
18+
</IfModule>
19+
20+
<IfModule mod_rewrite.c>
21+
RewriteEngine On
22+
23+
# Determine the RewriteBase automatically and set it as environment variable.
24+
# If you are using Apache aliases to do mass virtual hosting or installed the
25+
# project in a subdirectory, the base path will be prepended to allow proper
26+
# resolution of the index.php file and to redirect to the correct URI. It will
27+
# work in environments without path prefix as well, providing a safe, one-size
28+
# fits all solution. But as you do not need it in this case, you can comment
29+
# the following 2 lines to eliminate the overhead.
30+
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
31+
RewriteRule ^(.*) - [E=BASE:%1]
32+
33+
# Sets the HTTP_AUTHORIZATION header removed by Apache
34+
RewriteCond %{HTTP:Authorization} .
35+
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
36+
37+
# Redirect to URI without front controller to prevent duplicate content
38+
# (with and without `/index.php`). Only do this redirect on the initial
39+
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an
40+
# endless redirect loop (request -> rewrite to front controller ->
41+
# redirect -> request -> ...).
42+
# So in case you get a "too many redirects" error or you always get redirected
43+
# to the start page because your Apache does not expose the REDIRECT_STATUS
44+
# environment variable, you have 2 choices:
45+
# - disable this feature by commenting the following 2 lines or
46+
# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
47+
# following RewriteCond (best solution)
48+
RewriteCond %{ENV:REDIRECT_STATUS} ^$
49+
RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
50+
51+
# If the requested filename exists, simply serve it.
52+
# We only want to let Apache serve files and not directories.
53+
RewriteCond %{REQUEST_FILENAME} -f
54+
RewriteRule ^ - [L]
55+
56+
# Rewrite all other queries to the front controller.
57+
RewriteRule ^ %{ENV:BASE}/index.php [L]
58+
</IfModule>
59+
60+
<IfModule !mod_rewrite.c>
61+
<IfModule mod_alias.c>
62+
# When mod_rewrite is not available, we instruct a temporary redirect of
63+
# the start page to the front controller explicitly so that the website
64+
# and the generated links can still be used.
65+
RedirectMatch 307 ^/$ /index.php/
66+
# RedirectTemp cannot be used instead
67+
</IfModule>
68+
</IfModule>

symfony.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@
5656
"ref": "aaddfdf43cdecd4cf91f992052d76c2cadc04543"
5757
}
5858
},
59+
"symfony/apache-pack": {
60+
"version": "1.0",
61+
"recipe": {
62+
"repo": "github.com/symfony/recipes-contrib",
63+
"branch": "master",
64+
"version": "1.0",
65+
"ref": "c82bead70f9a4f656354a193df7bf0ca2114efa0"
66+
}
67+
},
5968
"symfony/cache": {
6069
"version": "v4.0.4"
6170
},

translations/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)