replace .dev with .test to avoid issues with the new google chrome
This commit is contained in:
parent
71cc109334
commit
ad3698670b
10
.github/README-zh.md
vendored
10
.github/README-zh.md
vendored
@ -669,19 +669,19 @@ PHP-CLI 安装在 Workspace 容器,改变 PHP-CLI 版本你需要编辑 `works
|
||||
<a name="Use-custom-Domain"></a>
|
||||
### 使用自定义域名 (替换 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;
|
||||
```
|
||||
|
||||
<a name="Enable-Global-Composer-Build-Install"></a>
|
||||
|
@ -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`
|
||||
|
||||
<br>
|
||||
<a name="Misc"></a>
|
||||
@ -1167,21 +1167,21 @@ If you need <a href="#MySQL-access-from-host">MySQL access from your host</a>, d
|
||||
<a name="Use-custom-Domain"></a>
|
||||
## 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;
|
||||
```
|
||||
|
||||
|
||||
|
@ -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).*
|
||||
|
||||
<br>
|
||||
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/`.
|
||||
|
@ -1,5 +1,5 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName laradock.dev
|
||||
ServerName laradock.test
|
||||
DocumentRoot /var/www/
|
||||
Options Indexes FollowSymLinks
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName sample.dev
|
||||
ServerName sample.test
|
||||
DocumentRoot /var/www/sample/public/
|
||||
Options Indexes FollowSymLinks
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user