I have a small Flask home server program configured for IP a.b.c.d. I also have a domain name xyz.com.
a.b.c.d
xyz.com
Now I would like xyz.comfor the content to be provided when switching to the user a.b.c.d, but xyz.comis still displayed in the address bar. Similarly, when switching to, you xyz.com/fooshould display the contents of a.b.c.d/foo, while being xyz.com/foodisplayed in the address bar.
xyz.com/foo
a.b.c.d/foo
I have route forwarding activated by my domain name provider, therefore it is xyz.com/foocorrectly redirected to a.b.c.d/foo, but when moving there it is a.b.c.d/foodisplayed in the address bar.
I am currently running a tornado, but if necessary, I can switch to another server.
Is it possible to configure such a solution? Or is my only option to buy some kind of hosting?
I managed to solve this on my own, but I will add this as an answer, since it is obvious that someone thought it was a worthwhile question.
, , DNS, DNS . " ", , , . , , DNS DNS A, xyz.com a.b.c.d. , , , , , , .
Source: https://habr.com/ru/post/1543877/More articles:What are constants and literary constants? - pythonРегистрация пользовательского компонента в Ember CLI - ember.jsBox.com Search API to extract all files in a specific folder - searchUnable to get 'top' property from undefined or null reference (IE 11) - javascriptRetrieve only the file from the GET folder request on Box.com - restFREEMARKER: Avoid Avoiding HTML Characters - freemarkerOpen local html pages using http for testing - javascriptSet secret in cookie-parser or express-session? - node.jsSymphony2 unit test mock controller - unit-testingSQL query for multiple tables with one SELECT statement using variables - variablesAll Articles