A
A
Alexander Moruz2014-03-07 23:27:10
Domain name market
Alexander Moruz, 2014-03-07 23:27:10

How to bind a domain to a url?

Hello
Please tell me how can I link a domain to some page of the site, for example,
namesite.domen/username is a link to profiles
How can I make this link open on this domain?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
@
@ntip, 2014-03-08
_

you can do it on a web server if you understand correctly

V
Vlad Zhivotnev, 2014-03-08
@inkvizitor68sl

Well, yes, without setting up a web server, this cannot be done in any way.
In any case, you need to bind the domain to some web server that will process the request to the domain and slip the desired page. One way is proxying.
If the original site is under your control, then you can attach a new domain to the same site and do everything with the help of rewrites in .htaccess or the nginx config. If not controlled - then only in the above way.

E
Eugene, 2014-03-07
@Nc_Soft

Routing at the application level

V
Vlad Zhivotnev, 2014-03-08
@inkvizitor68sl

What is available?)
If it is possible to configure nginx, then the easiest way is something like this:

server {
   listen 80;
   server_name домен_который_нужно_проксировать;
   location / {
  proxy_pass http://namesite.domen/username;
  proxy_set_header Host namesite.domen;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Real-IP $remote_addr;
   }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question