diff --git a/.github/README-zh.md b/.github/README-zh.md index aa2a0d0..e50794b 100644 --- a/.github/README-zh.md +++ b/.github/README-zh.md @@ -669,19 +669,19 @@ PHP-CLI 安装在 Workspace 容器,改变 PHP-CLI 版本你需要编辑 `works ### 使用自定义域名 (替换 Docker 的 IP) -假定你的自定义域名是 `laravel.dev` +假定你的自定义域名是 `laravel.test` -1 - 打开 `/etc/hosts` 文件添加以下内容,映射你的 localhost 地址 `127.0.0.1` 为 `laravel.dev` 域名 +1 - 打开 `/etc/hosts` 文件添加以下内容,映射你的 localhost 地址 `127.0.0.1` 为 `laravel.test` 域名 ```bash -127.0.0.1 laravel.dev +127.0.0.1 laravel.test ``` -2 - 打开你的浏览器访问 `{http://laravel.dev}` +2 - 打开你的浏览器访问 `{http://laravel.test}` 你可以在 nginx 配置文件自定义服务器名称,如下: ```conf -server_name laravel.dev; +server_name laravel.test; ``` diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index 113ca3c..306d60a 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -1002,7 +1002,7 @@ To install CodeIgniter 3 on Laradock all you have to do is the following simple 4 - Run `docker-compose restart` if the container was already running, before the step above. -5 - Visit `symfony.dev` +5 - Visit `symfony.test`
@@ -1167,21 +1167,21 @@ If you need MySQL access from your host, d ## Use custom Domain (instead of the Docker IP) -Assuming your custom domain is `laravel.dev` +Assuming your custom domain is `laravel.test` -1 - Open your `/etc/hosts` file and map your localhost address `127.0.0.1` to the `laravel.dev` domain, by adding the following: +1 - Open your `/etc/hosts` file and map your localhost address `127.0.0.1` to the `laravel.test` domain, by adding the following: ```bash -127.0.0.1 laravel.dev +127.0.0.1 laravel.test ``` -2 - Open your browser and visit `{http://laravel.dev}` +2 - Open your browser and visit `{http://laravel.test}` Optionally you can define the server name in the NGINX configuration file, like this: ```conf -server_name laravel.dev; +server_name laravel.test; ``` diff --git a/DOCUMENTATION/content/getting-started/index.md b/DOCUMENTATION/content/getting-started/index.md index 6815f29..4d088ac 100644 --- a/DOCUMENTATION/content/getting-started/index.md +++ b/DOCUMENTATION/content/getting-started/index.md @@ -121,8 +121,8 @@ You can rename the config files, project folders and domains as you like, just m 4 - Add the domains to the **hosts** files. ``` -127.0.0.1 project-1.dev -127.0.0.1 project-2.dev +127.0.0.1 project-1.test +127.0.0.1 project-2.test ... ``` If you use Chrome 63 or above for development, don't use `.dev`. [Why?](https://laravel-news.com/chrome-63-now-forces-dev-domains-https). Instead use `.localhost`, `.invalid`, `.test`, or `.example`. @@ -214,4 +214,4 @@ DB_HOST=mysql *If you want to install Laravel as PHP project, see [How to Install Laravel in a Docker Container](#Install-Laravel).*
-5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.dev/` and `http://project-2.dev/`. +5 - Open your browser and visit your localhost address `http://localhost/`. If you followed the multiple projects setup, you can visit `http://project-1.test/` and `http://project-2.test/`. diff --git a/apache2/sites/default.apache.conf b/apache2/sites/default.apache.conf index 18ee6de..ed2311d 100644 --- a/apache2/sites/default.apache.conf +++ b/apache2/sites/default.apache.conf @@ -1,5 +1,5 @@ - ServerName laradock.dev + ServerName laradock.test DocumentRoot /var/www/ Options Indexes FollowSymLinks diff --git a/apache2/sites/sample.conf.example b/apache2/sites/sample.conf.example index 48a132e..fdb4de1 100644 --- a/apache2/sites/sample.conf.example +++ b/apache2/sites/sample.conf.example @@ -1,5 +1,5 @@ - ServerName sample.dev + ServerName sample.test DocumentRoot /var/www/sample/public/ Options Indexes FollowSymLinks diff --git a/nginx/sites/app.conf.example b/nginx/sites/app.conf.example index c28eec3..25acaca 100644 --- a/nginx/sites/app.conf.example +++ b/nginx/sites/app.conf.example @@ -3,7 +3,7 @@ server { listen 80; listen [::]:80; - server_name app.dev; + server_name app.test; root /var/www/app; index index.php index.html index.htm; diff --git a/nginx/sites/laravel.conf.example b/nginx/sites/laravel.conf.example index dd9a2ae..6ba79aa 100644 --- a/nginx/sites/laravel.conf.example +++ b/nginx/sites/laravel.conf.example @@ -3,7 +3,7 @@ server { listen 80; listen [::]:80; - server_name laravel.dev; + server_name laravel.test; root /var/www/laravel/public; index index.php index.html index.htm; diff --git a/nginx/sites/symfony.conf.example b/nginx/sites/symfony.conf.example index 8d518fe..fe14a27 100644 --- a/nginx/sites/symfony.conf.example +++ b/nginx/sites/symfony.conf.example @@ -3,7 +3,7 @@ server { listen 80; listen [::]:80; - server_name symfony.dev; + server_name symfony.test; root /var/www/projects/symfony/web; index index.php index.html index.htm;