S
S
sobchukvadim2017-09-07 23:25:40
Nginx
sobchukvadim, 2017-09-07 23:25:40

Domain parking?

Good day. Question to experts or familiar with this issue. There is a service for creating advertising links. (eg traff.com) User register. and can create their own links (shortlinks, set up landing pages for each page), then place them everywhere. There was a question of a parking of domains. Now the user can make a list of his real domains on traff.com and indicate his domain when creating a landing (after setting up a-records of his traff.com IP domain). There are links traff.com/fnu6 traff.com/fsap etc. ...How to display content from traff.com after parking, i.e. traff.com/fnu6 = parkind-domain.com/fnu6. What needs to be done on the side of traff.com for this? Thanks for the advice and help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Korobkov, 2017-09-07
@BorisKorobkov

traff.com/fnu6=parkind-domain.com/fnu6.

If you need to make a redirect, then https://www.nginx.com/blog/creating-nginx-rewrite-... + process the parkind-domain.com domain itself
If you need to make parkind-domain.com an alias of traff.com just add it to server_name.

A
Alexander Aksentiev, 2017-09-08
@Sanasol

you need to listen to all requests and analyze the backend scripts for which domain the request came from, for this you need to have a database parked naturally.
That's all.
No special manipulations are needed.
Well, or in hardcore, automatically generate a config for each parked person and do whatever your heart desires, but this is naturally complete jerking off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question