- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
Should I leave the static IP address online?
If you have registered this the static IP to your domain, and you want to keep your website accessible via the domain, then yes. If you don't want to serve your website anymore, you can release it.
How to create a redirect from the static IP address to the domain?
There is no way to redirect a static IP to its domain(s). If you send request to a static IP, the request will be sent directly to its origin. If you send request to a domain, your HTTP client first sends DNS queries to the name servers, receives a resolved IP address, then send request to the origin.
As per HS, leave the static IP attached.
For question 2, you can use Apache server rules to redirect. I do not remember exact syntax, but I think it is roughly as below
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{SERVER_NAME} = 3.72.145.190
RewriteRule ^ https://www.darm-fit.at
</VirtualHost>
Do test and backup your config.
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 10 Monaten
- AWS OFFICIALAktualisiert vor einem Monat
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Monat
Thank you very much for the answer. Then I have a last question for a beginner. Does every website like www.apple.com have a static ip? And with the static ip the website can be visited?
nice regards sebastian
Yes, every website has a static IP as long as it is publicly accessible. For www.apple.com, you can use
nslookup
command to resolve its IP, which is23.210.40.201
.Then, you can access the website by its static IP with your HTTP client (e.g.,
curl
command).Thanks for the detailed answer. Now I understand it even better :- D.