Skip to content

Commit 6a4a4cf

Browse files
authored
docs: use consistent domain name in "Serving" guide (#2782)
1 parent c6773fd commit 6a4a4cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/going-buildless/serving.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ the [HyperText Transfer Protocol](https://developer.mozilla.org/en-US/docs/Web/H
1212

1313
Now that your `GET` request has reached the web server, the server has to parse the URL to determine what to include in the response.
1414

15-
So when the request for `GET https://my-domain.dev/` comes in, the web server parses it into three major parts,
15+
So when the request for `GET https://my-domain.com/` comes in, the web server parses it into three major parts,
1616

1717
1. the protocol `https://`,
18-
2. the domain name `my-domain.dev`
18+
2. the domain name `my-domain.com`
1919
3. the path `/`
2020

21-
So this particular request is asking for the entire web root directory since the path part of the URL didn't include any specific file in the request. How does the web server know how to respond? Most web servers when given a request for a directory will look for a special file in that directory named `index.html` and serve that. It's as if the user actually typed `https://my-domain.dev/index.html` into their browser.
21+
So this particular request is asking for the entire web root directory since the path part of the URL didn't include any specific file in the request. How does the web server know how to respond? Most web servers when given a request for a directory will look for a special file in that directory named `index.html` and serve that. It's as if the user actually typed `https://my-domain.com/index.html` into their browser.
2222

2323
The simplest kinds of web servers retrieve the file located at the path specified in the URL, relative to the web root. The web root is the directory which that web server is configured to look in for files. For example, the [Apache](https://httpd.apache.org/) web server running on Ubuntu Linux 14.04 looks in `/var/www/html/` by default, whereas the nginx server by some default configurations looks in `/usr/share/nginx/html/`.
2424

0 commit comments

Comments
 (0)