-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCloudflare_website.txt
More file actions
121 lines (93 loc) · 4.29 KB
/
Cloudflare_website.txt
File metadata and controls
121 lines (93 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Use Cloudflare to make a simple static website
https://www.cloudflare.com
https://en.wikipedia.org/wiki/Cloudflare
Cloudflare is an American company (in San Francisco, CA)
that provides CDN (Content Delivery Network) services,
cloud cybersecurity, DDoS mitigation,
ICANN-accredited domain registration services.
Think of it as a giant intelligent network spread
across hundreds of cities around the world.
Cloudflare acts as a security guard, filtering
malicious traffic and protecting websites
from DDoS attacks, data breaches, and other online threats.
It encrypts connections (HTTPS), offers two-factor
authentication, and provide many other services.
Suppose you want to create a simple static website.
You can use CloudFlare to:
- Brainstorm the domain name - and register it
- Set up DNS and redirects
- Integrate with Google workspace (for gmail)
- Host a simple static website (up to 25 MB)
You can upload files to "pages" either from your
computer, or from GitHub. Easy.
So CloudFlare is perfect for a short "business card"-like website
to keep your BIO, resume, and other related files
======================================================
cloudflare.com
login
domain registrtion (if need to register a new domain)
websites - to work with existing domain ( DNS, ... )
Workers & Pages - select "Pages" and create a new "myname"
it will point to myname.pages.dev
upload your files (whole directory) - and deploy
set custom domain (myname.com)
go to website DNS - and add CNAME www myname.com
But CNAME doesn't work - so I have to make a redirect rule
select the website, click on DNS on left,
then lower on left you will see "Rules"
Click on "Rules, then on "Redirect Rules"
Then create a "Redirect Rule" as following:
rule name: "www-redirect"
custom filter expression
when hostname equals www.myname.com
then
dynamic concat("https://myname.com", http.request.uri.path) 301
deploy
======================================================
Problems - search https://community.cloudflare.com
======================================================
Setting Up a Redirect from Your Custom Domain to Zoom
Here's how to set up a redirect from your Cloudflare
domain to your personal Zoom link:
Log in to your Cloudflare account at dash.cloudflare.com
Select your domain from the Cloudflare dashboard
Verify that two DNS records are set:
A record - created automatically to point domain to CloudFlare proxy
CNAME record - to point www.yourdomain.com to yourdomain.com
TYPE Name Content
A meetlev.com 104.236.3.83 # created automatically
CNAME www meetlev.com # created manually
Navigate to Rules:
Click on "Rules" in the left sidebar
Select "Page Rules" (or in newer interfaces,
go to "Rules" then "Redirect Rules")
Create a new redirect rule:
Click "Create Page Rule" or "Create Redirect Rule"
In the URL pattern field, enter your domain pattern to match:
For redirecting the root domain: yourdomain.com/*
For a specific subdomain: meetings.yourdomain.com/*
Set up the redirect:
Select "Forwarding URL" as the setting (or "Redirect" in newer interfaces)
Choose "301 Permanent Redirect" or "302 Temporary Redirect" (301 is better for SEO if this is a permanent setup)
Enter your personal Zoom meeting URL in the destination field:
Example: https://zoom.us/j/123456789
Save and Deploy:
Click "Save and Deploy" or "Deploy" to activate the rule
Test the redirect by visiting your custom domain in a browser
This setup will redirect anyone who visits your domain
directly to your personal Zoom meeting link.
======================================================
In my account, I select my domain MeetLev.com.
See the "Rules" on the left, open it, click on Overview.
In the right pane I see one active rule called "redirect to zoom"
When I click on it - I can see/change the details:
Rule Name: redirect to zoom
If incoming requests match: All incoming requests
Then
URL redirect
Type: Static
URL: https://us02web.zoom.us/j/4979450088?pwd=ZmVEMkt4RDMrZW84RVMvYmZDSDI0QT09
Status code: 301
Place at
Select order: First
======================================================