Skip to content

Commit 3d54cd3

Browse files
committed
Updated the boxes used for DevBox
1 parent 15bd249 commit 3d54cd3

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

README.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ folders:
6262

6363

6464
#### Ubuntu
65-
By default, DevBox uses Ubuntu 16.04. To use a different version, add the `ubuntu` property. Supported versions are `14.04` and `16.04`.
65+
By default, DevBox uses Ubuntu 16.04. To use a different version, add the `ubuntu` property. Supported versions are `14.04` and `16.04`.
6666
```yaml
6767
ubuntu: "14.04"
6868
```
6969

7070

7171
#### Webserver
72-
By default, DevBox uses Nginx as the web server. To use a different web server, add the `webserver` property. Supported servers are `nginx` and `apache`.
72+
By default, DevBox uses Nginx as the web server. To use a different web server, add the `webserver` property. Supported servers are `nginx` and `apache`.
7373
```yaml
7474
webserver: apache
7575
```
@@ -123,17 +123,17 @@ sites:
123123
```
124124
**Note**: PHP version 5.5 is also supported for legacy systems. Add `5` to the `php` sites property.
125125

126-
The url must be added to your machines `hosts` file. Example:
126+
The url must be added to your machines `hosts` file. Example:
127127
```
128128
192.168.22.18 site1.test
129129
192.168.22.18 site2.test
130130
```
131131

132-
A self-signed SSL certificate is created for each site, so sites can be accessed via HTTP and HTTPS.
132+
A self-signed SSL certificate is created for each site, so sites can be accessed via HTTP and HTTPS.
133133

134134

135135
#### MySQL
136-
By default, DevBox uses MySQL 5.7. To install an alternative version, add the `mysql` property. Supported versions are `5.5`, `5.6` and `5.7`.
136+
By default, DevBox uses MySQL 5.7. To install an alternative version, add the `mysql` property. Supported versions are `5.5`, `5.6` and `5.7`.
137137
```yaml
138138
mysql: "5.5"
139139
```
@@ -177,8 +177,5 @@ A number of default bash aliases are created for the VM. These can be found in t
177177

178178
### Other software included
179179
- Git
180-
- NVM and Node with the following global packages:
181-
- Bower
182-
- Grunt
183-
- Gulp
184-
- Yarn
180+
- NVM and Node
181+
- Yarn

scripts/serve-apache

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ block="<VirtualHost *:80>
6464

6565
echo "$block" > "/etc/apache2/sites-available/$hostname.conf"
6666

67+
a2enmod proxy proxy_fcgi ssl > /dev/null 2>&1
68+
69+
a2dissite 000-default > /dev/null 2>&1
6770
a2ensite "$hostname.conf" > /dev/null 2>&1
6871

69-
a2enconf "php$php-fpm" && service apache2 restart
72+
a2enconf "php$php-fpm" > /dev/null 2>&1
73+
service apache2 restart > /dev/null 2>&1

scripts/serve-nginx

+6-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ block="server {
5454

5555
echo "$block" > "/etc/nginx/sites-available/$hostname"
5656

57-
ln -fs "/etc/nginx/sites-available/$hostname" "/etc/nginx/sites-enabled/$hostname"
57+
if [[ -f /etc/nginx/sites-enabled/default ]]
58+
then
59+
rm /etc/nginx/sites-enabled/default
60+
fi
61+
62+
ln -fs "/etc/nginx/sites-available/$hostname" "/etc/nginx/sites-enabled/$hostname"

0 commit comments

Comments
 (0)