Skip to content

Commit 558f648

Browse files
committed
minor #13 [Doc] Added a mention to the changes needed in the web server config (javiereguiluz)
This PR was squashed before being merged into the 1.0.x-dev branch (closes #13). Discussion ---------- [Doc] Added a mention to the changes needed in the web server config Commits ------- bda05c9 [Doc] Added a mention to the changes needed in the web server config
2 parents f17ce45 + bda05c9 commit 558f648

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/default-deployer.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,33 @@ Then, the following directory structure is created on each remote server:
6868
EasyDeploy creates this directory structure for you. There's no need to execute
6969
any command to setup the servers or configure anything.
7070

71+
### Web Server Configuration
72+
73+
If you start using this strategy to deploy an already existing application, you
74+
may need to update your web server configuration. Specifically, you must update
75+
the document root to include the `current` symlink, which always points to the
76+
most recent version. The following example shows the changes needed for the
77+
Apache web server configuration:
78+
79+
```diff
80+
<VirtualHost *:80>
81+
# ...
82+
83+
- DocumentRoot /var/www/vhosts/example.com/web
84+
+ DocumentRoot /var/www/vhosts/example.com/current/web
85+
DirectoryIndex app.php
86+
87+
- <Directory /var/www/vhosts/example.com/web>
88+
+ <Directory /var/www/vhosts/example.com/current/web>
89+
RewriteEngine On
90+
RewriteCond %{REQUEST_FILENAME} !-f
91+
RewriteRule ^(.*)$ app.php [QSA,L]
92+
</Directory>
93+
94+
# ...
95+
</VirtualHost>
96+
```
97+
7198
Configuration
7299
-------------
73100

0 commit comments

Comments
 (0)