|
|
@@ -1,12 +1,11 @@
|
|
|
# INSTALLATION
|
|
|
|
|
|
- Installing DropIn is more straightforward than what it could appear..
|
|
|
+ Installing this web app is more straightforward than what it could appear.
|
|
|
|
|
|
- First, if you use Nginx as reversed proxy just point the root of your web app to /path/to/YourDropIn/Public
|
|
|
+ First, if you use Nginx as reversed proxy just point the root of your web app to /path/to/YourWebApp/Public/static
|
|
|
where the public content is located:
|
|
|
|
|
|
<ol>
|
|
|
- <li>The static content hosted should be just of this kind: html, css, js, png, jpg, jpeg, gif, fonts, map, ico</li>
|
|
|
<li>Example of Nginx minimal configuration:
|
|
|
|
|
|
server {
|
|
|
@@ -14,10 +13,17 @@
|
|
|
listen 80;
|
|
|
listen [::]:80;
|
|
|
|
|
|
- server_name yourdropin.com;
|
|
|
+ server_name yourservername.xyz;
|
|
|
|
|
|
- root /var/www/YourDropIn/Public;
|
|
|
- index index.php;
|
|
|
+ root /path/to/YourWebApp/Public/static;
|
|
|
+ index index.php;
|
|
|
+
|
|
|
+ location / {
|
|
|
+
|
|
|
+ if (!-e $request_filename) {
|
|
|
+ rewrite ^(.+)$ /index.php?url=$1 last;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
location ~* ^.+\.(php)$ {
|
|
|
proxy_set_header Host $host;
|
|
|
@@ -46,6 +52,6 @@
|
|
|
</li>
|
|
|
</ol>
|
|
|
|
|
|
- Apache instead should have DocumentRoot pointing to /path/to/YourDropIn/Public .
|
|
|
+ Apache instead should have DocumentRoot pointing to /path/to/YourWebApp/Public .
|
|
|
|
|
|
Dan
|