You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart/publish.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,10 @@ There are a few ways to make ojobpub.json accessible:
11
11
12
12
## Local Path
13
13
14
-
Save the ojobpub.json on your webserver's root path by creating a directory `.well-known/` (not the dot prefix).
14
+
Save the ojobpub.json on your webserver's root path by creating a directory `.well-known/` (note the dot prefix).
15
15
16
16
The root path of your website might look like something like `/var/www/example.com/`, so the file _ojobpub.json_ would be placed in `/var/www/example.com/.well-known/ojobpub.json`.
17
17
18
-
## HTTP Redirects
19
-
20
-
Creating a redirect to a different domain, vHost or path.
21
-
22
-
### Different vHost
23
-
24
18
If you have a website under https://www.example.com you can try what happens if you place the ojobpub.json in this `vhost` so it would be accessible like so `https://www.example.com/.well-known/ojobpub.json`.
25
19
26
20
Then access the location `https://example.com/.well-known/ojobpub.json` and see if it worked. Why? Many webservers are configured to redirect `example.com` to `www.example.com` while keeping the URI (path) per default.
The interesting information is the `HTTP 302` which stands for "Redirection" and the `location: ...` where you can see the address. NOTE: This must not be just `https://www.example.com/` but the also the full path to ojobpub.json.
32
+
33
+
If test was not successful, read further about HTTP Redirects configuration options.
34
+
35
+
## HTTP Redirects
36
+
37
+
Creating a redirect to a different domain, vHost or path.
38
+
39
+
### Different Domain / vhost
39
40
40
-
You can redirect to another domain like `https://jobs.example.com/just-an example/ojobpub.json`.
41
+
You can redirect to another domain like `https://jobs.example.com/just-an example/ojobpub.json` or same domain but different path:
41
42
42
43
=== "Apache HTTPD"
43
44
@@ -46,7 +47,7 @@ You can redirect to another domain like `https://jobs.example.com/just-an exampl
0 commit comments