Browser change the domain by ip, Debian, Apache2How do I find the authoritative name-server for a domain name?How do browser cookie domains work?How do I change permissions for a folder and all of its subfolders and files in one step in Linux?How to change the output color of echo in LinuxCustom domain for GitHub project pagesCant make my site available to the internetDebian apache2 overflowApache2: 'AH01630: client denied by server configuration'Virtual hosts apache2 Debian jessieApache2 Debian Letsencrypt Query
How could indestructible materials be used in power generation?
Finding the reason behind the value of the integral.
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
Is it a bad idea to plug the other end of ESD strap to wall ground?
Send out email when Apex Queueable fails and test it
Is it possible to create a QR code using text?
What does the same-ish mean?
How to show a landlord what we have in savings?
Rotate ASCII Art by 45 Degrees
Why were 5.25" floppy drives cheaper than 8"?
How do conventional missiles fly?
How can saying a song's name be a copyright violation?
Forgetting the musical notes while performing in concert
Should I tell management that I intend to leave due to bad software development practices?
Processor speed limited at 0.4 Ghz
How badly should I try to prevent a user from XSSing themselves?
Can a virus destroy the BIOS of a modern computer?
Were days ever written as ordinal numbers when writing day-month-year?
What is an equivalently powerful replacement spell for Yuan-Ti's Suggestion spell?
Label inside tikzcd square
What are the G forces leaving Earth orbit?
Getting extremely large arrows with tikzcd
How does a dynamic QR code work?
What is a Samsaran Word™?
Browser change the domain by ip, Debian, Apache2
How do I find the authoritative name-server for a domain name?How do browser cookie domains work?How do I change permissions for a folder and all of its subfolders and files in one step in Linux?How to change the output color of echo in LinuxCustom domain for GitHub project pagesCant make my site available to the internetDebian apache2 overflowApache2: 'AH01630: client denied by server configuration'Virtual hosts apache2 Debian jessieApache2 Debian Letsencrypt Query
When I enter in the web browser https://myBuyDomain at the time the web is loaded, it is changed to https://my_Ip_static
- The server works correctly, use ssl but I always accessed through the static ip
- Self-signed CA, Apache2, Debian 9, use google compute engine.
- The only change has been the purchase of the domain, the redirection that I have put is: https://mi_ip_static
- My domain: zzzzzz.page and www.zzzzzz.page
- I do not use any .htaccess
-virtualhost
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /miPath/web
ServerName zzzzzz.page
ServerAlias www.zzzzzz.page
<Directory /miPath/web>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<FilesMatch .php$>
SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
SSLCertificateFile /otherPath.pem
SSLCertificateKeyFile /otherPath.key
</VirtualHost>
- /etc/host
my_ip_static zzzzzz.page www.zzzzzz.page
127.0.0.1 localhost hostname_machine
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
xxx.xxx.xxx.xxx aaaaa.aaaa.a.aaaaa.aaaaa old_hostname # Added by Google
xxx.xxx.xxx.xx metadata.google.internal # Added by Google
Also when I try to install certbot, but it fails for something I do not know where to change:
Fetching https://my_ip_static: Invalid host in redirect target "my_ip_static".
Only domain names are supported, not IP addresses
The correct way to do it is using .htaccess to change my_ip_static for the domain? I do not know what I do wrong or what remains to be configured.
linux networking dns ip apache2
add a comment |
When I enter in the web browser https://myBuyDomain at the time the web is loaded, it is changed to https://my_Ip_static
- The server works correctly, use ssl but I always accessed through the static ip
- Self-signed CA, Apache2, Debian 9, use google compute engine.
- The only change has been the purchase of the domain, the redirection that I have put is: https://mi_ip_static
- My domain: zzzzzz.page and www.zzzzzz.page
- I do not use any .htaccess
-virtualhost
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /miPath/web
ServerName zzzzzz.page
ServerAlias www.zzzzzz.page
<Directory /miPath/web>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<FilesMatch .php$>
SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
SSLCertificateFile /otherPath.pem
SSLCertificateKeyFile /otherPath.key
</VirtualHost>
- /etc/host
my_ip_static zzzzzz.page www.zzzzzz.page
127.0.0.1 localhost hostname_machine
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
xxx.xxx.xxx.xxx aaaaa.aaaa.a.aaaaa.aaaaa old_hostname # Added by Google
xxx.xxx.xxx.xx metadata.google.internal # Added by Google
Also when I try to install certbot, but it fails for something I do not know where to change:
Fetching https://my_ip_static: Invalid host in redirect target "my_ip_static".
Only domain names are supported, not IP addresses
The correct way to do it is using .htaccess to change my_ip_static for the domain? I do not know what I do wrong or what remains to be configured.
linux networking dns ip apache2
Do not redirect the URL with the hostname to the URL with the IP address, this makes no sense.
– Patrick Mevzek
Mar 7 at 22:30
"mi_ip_static" this is an error? I've put it like this to force https traffic. Should I put only the ip?
– Apyc
Mar 7 at 22:57
As seen in the error message: "Only domain names are supported, not IP addresses", HTTPS works with hostnames in URLs, not with IP address. Do not redirect to an URL with an IP address in it instead of an hostname.
– Patrick Mevzek
Mar 7 at 22:59
add a comment |
When I enter in the web browser https://myBuyDomain at the time the web is loaded, it is changed to https://my_Ip_static
- The server works correctly, use ssl but I always accessed through the static ip
- Self-signed CA, Apache2, Debian 9, use google compute engine.
- The only change has been the purchase of the domain, the redirection that I have put is: https://mi_ip_static
- My domain: zzzzzz.page and www.zzzzzz.page
- I do not use any .htaccess
-virtualhost
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /miPath/web
ServerName zzzzzz.page
ServerAlias www.zzzzzz.page
<Directory /miPath/web>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<FilesMatch .php$>
SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
SSLCertificateFile /otherPath.pem
SSLCertificateKeyFile /otherPath.key
</VirtualHost>
- /etc/host
my_ip_static zzzzzz.page www.zzzzzz.page
127.0.0.1 localhost hostname_machine
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
xxx.xxx.xxx.xxx aaaaa.aaaa.a.aaaaa.aaaaa old_hostname # Added by Google
xxx.xxx.xxx.xx metadata.google.internal # Added by Google
Also when I try to install certbot, but it fails for something I do not know where to change:
Fetching https://my_ip_static: Invalid host in redirect target "my_ip_static".
Only domain names are supported, not IP addresses
The correct way to do it is using .htaccess to change my_ip_static for the domain? I do not know what I do wrong or what remains to be configured.
linux networking dns ip apache2
When I enter in the web browser https://myBuyDomain at the time the web is loaded, it is changed to https://my_Ip_static
- The server works correctly, use ssl but I always accessed through the static ip
- Self-signed CA, Apache2, Debian 9, use google compute engine.
- The only change has been the purchase of the domain, the redirection that I have put is: https://mi_ip_static
- My domain: zzzzzz.page and www.zzzzzz.page
- I do not use any .htaccess
-virtualhost
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /miPath/web
ServerName zzzzzz.page
ServerAlias www.zzzzzz.page
<Directory /miPath/web>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<FilesMatch .php$>
SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
SSLCertificateFile /otherPath.pem
SSLCertificateKeyFile /otherPath.key
</VirtualHost>
- /etc/host
my_ip_static zzzzzz.page www.zzzzzz.page
127.0.0.1 localhost hostname_machine
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
xxx.xxx.xxx.xxx aaaaa.aaaa.a.aaaaa.aaaaa old_hostname # Added by Google
xxx.xxx.xxx.xx metadata.google.internal # Added by Google
Also when I try to install certbot, but it fails for something I do not know where to change:
Fetching https://my_ip_static: Invalid host in redirect target "my_ip_static".
Only domain names are supported, not IP addresses
The correct way to do it is using .htaccess to change my_ip_static for the domain? I do not know what I do wrong or what remains to be configured.
linux networking dns ip apache2
linux networking dns ip apache2
asked Mar 7 at 21:03
ApycApyc
375
375
Do not redirect the URL with the hostname to the URL with the IP address, this makes no sense.
– Patrick Mevzek
Mar 7 at 22:30
"mi_ip_static" this is an error? I've put it like this to force https traffic. Should I put only the ip?
– Apyc
Mar 7 at 22:57
As seen in the error message: "Only domain names are supported, not IP addresses", HTTPS works with hostnames in URLs, not with IP address. Do not redirect to an URL with an IP address in it instead of an hostname.
– Patrick Mevzek
Mar 7 at 22:59
add a comment |
Do not redirect the URL with the hostname to the URL with the IP address, this makes no sense.
– Patrick Mevzek
Mar 7 at 22:30
"mi_ip_static" this is an error? I've put it like this to force https traffic. Should I put only the ip?
– Apyc
Mar 7 at 22:57
As seen in the error message: "Only domain names are supported, not IP addresses", HTTPS works with hostnames in URLs, not with IP address. Do not redirect to an URL with an IP address in it instead of an hostname.
– Patrick Mevzek
Mar 7 at 22:59
Do not redirect the URL with the hostname to the URL with the IP address, this makes no sense.
– Patrick Mevzek
Mar 7 at 22:30
Do not redirect the URL with the hostname to the URL with the IP address, this makes no sense.
– Patrick Mevzek
Mar 7 at 22:30
"mi_ip_static" this is an error? I've put it like this to force https traffic. Should I put only the ip?
– Apyc
Mar 7 at 22:57
"mi_ip_static" this is an error? I've put it like this to force https traffic. Should I put only the ip?
– Apyc
Mar 7 at 22:57
As seen in the error message: "Only domain names are supported, not IP addresses", HTTPS works with hostnames in URLs, not with IP address. Do not redirect to an URL with an IP address in it instead of an hostname.
– Patrick Mevzek
Mar 7 at 22:59
As seen in the error message: "Only domain names are supported, not IP addresses", HTTPS works with hostnames in URLs, not with IP address. Do not redirect to an URL with an IP address in it instead of an hostname.
– Patrick Mevzek
Mar 7 at 22:59
add a comment |
1 Answer
1
active
oldest
votes
The error is in the google domain configuration. I created a redirect to a website. This option is to redirect to an external website but not to your own server.
1 - Remove the website redirection
2 - In the DNS section, create 2 custom resource records
First:
name = @
Type = A
TTL = 1h
Data = static ip of my server
Second:
name = www
Type = A
TTL = 1h
Data = static ip of my server
That's it, in a few minutes the server is accessible and does not change the domain name by the ip
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55052743%2fbrowser-change-the-domain-by-ip-debian-apache2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The error is in the google domain configuration. I created a redirect to a website. This option is to redirect to an external website but not to your own server.
1 - Remove the website redirection
2 - In the DNS section, create 2 custom resource records
First:
name = @
Type = A
TTL = 1h
Data = static ip of my server
Second:
name = www
Type = A
TTL = 1h
Data = static ip of my server
That's it, in a few minutes the server is accessible and does not change the domain name by the ip
add a comment |
The error is in the google domain configuration. I created a redirect to a website. This option is to redirect to an external website but not to your own server.
1 - Remove the website redirection
2 - In the DNS section, create 2 custom resource records
First:
name = @
Type = A
TTL = 1h
Data = static ip of my server
Second:
name = www
Type = A
TTL = 1h
Data = static ip of my server
That's it, in a few minutes the server is accessible and does not change the domain name by the ip
add a comment |
The error is in the google domain configuration. I created a redirect to a website. This option is to redirect to an external website but not to your own server.
1 - Remove the website redirection
2 - In the DNS section, create 2 custom resource records
First:
name = @
Type = A
TTL = 1h
Data = static ip of my server
Second:
name = www
Type = A
TTL = 1h
Data = static ip of my server
That's it, in a few minutes the server is accessible and does not change the domain name by the ip
The error is in the google domain configuration. I created a redirect to a website. This option is to redirect to an external website but not to your own server.
1 - Remove the website redirection
2 - In the DNS section, create 2 custom resource records
First:
name = @
Type = A
TTL = 1h
Data = static ip of my server
Second:
name = www
Type = A
TTL = 1h
Data = static ip of my server
That's it, in a few minutes the server is accessible and does not change the domain name by the ip
answered Mar 9 at 21:51
ApycApyc
375
375
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55052743%2fbrowser-change-the-domain-by-ip-debian-apache2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do not redirect the URL with the hostname to the URL with the IP address, this makes no sense.
– Patrick Mevzek
Mar 7 at 22:30
"mi_ip_static" this is an error? I've put it like this to force https traffic. Should I put only the ip?
– Apyc
Mar 7 at 22:57
As seen in the error message: "Only domain names are supported, not IP addresses", HTTPS works with hostnames in URLs, not with IP address. Do not redirect to an URL with an IP address in it instead of an hostname.
– Patrick Mevzek
Mar 7 at 22:59