Skip to content

Commit 0cd7966

Browse files
committed
add httpd config file with proxy directives
1 parent 42918ef commit 0cd7966

File tree

3 files changed

+468
-2
lines changed

3 files changed

+468
-2
lines changed

multiple-servers/IMPLEMENTATION.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ Switch static server over to 8083.
5757

5858
`brew install apache2` (or `brew install httpd`?)
5959

60-
`brew services restart httpd`
60+
```
61+
brew services restart httpd
62+
```
63+
64+
```
65+
sudo httpd -D FOREGROUND -f `pwd`/config/httpd.conf
66+
```

multiple-servers/assets/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function fetchImages() {
2-
return fetch("http://localhost:8081/images.json").then(_ => _.json())
2+
return fetch("http://localhost:8080/api/images.json").then(_ => _.json())
33
}
44

55
function timeout(t, v) {

0 commit comments

Comments
 (0)