Changing docroots to have the same defaults
Caddy, NGINX and Apache2 should have the same default application paths. The `public/` path suffix is now added in the dotenv file to be able to use Laradock for non-laravel projects as well. Also, updated the documentation.
This commit is contained in:
		@@ -77,14 +77,19 @@ Your folder structure should look like this:
 | 
			
		||||
 | 
			
		||||
2 - Edit your web server sites configuration.
 | 
			
		||||
 | 
			
		||||
**In case of NGINX:** open `nginx/sites/default.conf` and change the `root` from `/var/www/public` to `/var/www/{my-project-folder-name}/public`.
 | 
			
		||||
We'll need to do step 1 of the [Usage](#Usage) section now to make this happen.
 | 
			
		||||
 | 
			
		||||
*Or you can keep `default.conf` as it is, and create a separate config `my-site.conf` file for it.*
 | 
			
		||||
```
 | 
			
		||||
cp env-example .env
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**In case of Apache:** :P 
 | 
			
		||||
At the top, change the `APPLICATION` variable to your project path.
 | 
			
		||||
 | 
			
		||||
<br>
 | 
			
		||||
```
 | 
			
		||||
APPLICATION=../project-z/public/
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Make sure to replace `project-z` with your project folder name.
 | 
			
		||||
 | 
			
		||||
> **Now jump to the [Usage](#Usage) section.**
 | 
			
		||||
 | 
			
		||||
@@ -146,7 +151,7 @@ If you are using **Docker Toolbox** (VM), do one of the following:
 | 
			
		||||
 | 
			
		||||
<br>
 | 
			
		||||
 | 
			
		||||
1 - Enter the laradock folder and rename `env-example` to `.env`
 | 
			
		||||
1 - Enter the laradock folder and copy `env-example` to `.env`
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
cp env-example .env
 | 
			
		||||
 
 | 
			
		||||
@@ -165,14 +165,14 @@ Remove 0.0.0.0:80
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
0.0.0.0:80
 | 
			
		||||
root /var/www/public
 | 
			
		||||
root /var/www
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
and replace with your https://yourdomain.com
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
https://yourdomain.com
 | 
			
		||||
root /var/www/public
 | 
			
		||||
root /var/www
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
uncomment tls
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user