From ad3698670bd31528acdf5f125b39a78c24413c0e Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Sun, 17 Dec 2017 21:35:31 +0100 Subject: [PATCH] replace .dev with .test to avoid issues with the new google chrome --- .github/README-zh.md | 10 +++++----- DOCUMENTATION/content/documentation/index.md | 12 ++++++------ DOCUMENTATION/content/getting-started/index.md | 6 +++--- apache2/sites/default.apache.conf | 2 +- apache2/sites/sample.conf.example | 2 +- nginx/sites/app.conf.example | 2 +- nginx/sites/laravel.conf.example | 2 +- nginx/sites/symfony.conf.example | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/README-zh.md b/.github/README-zh.md index aa2a0d07..e50794b7 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 113ca3cd..306d60a7 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 6815f295..4d088aca 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 18ee6de5..ed2311dd 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 48a132e0..fdb4de14 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 c28eec30..25acaca4 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 dd9a2ae7..6ba79aa8 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 8d518fee..fe14a27b 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;