I want to host all my domains on my own server, park them here. I do not know how ot make the server host any domain without needing to manually add each domain in plesk or in other control panel. Just by setting name servers to ns.my_server.com
And when a domain is accessed like domain10.com I want it to show content that I have in my_server.com/domain10.com
Is this possible? I do not know what OS (linux) files to modify. Any help is appreciated.
I am sure others discussed it but I am not sure what keywords to look for.
If you have a (virtual) dedicated server you will have access to Apache's httpd.conf. The first <VirtualDomain> section in your httpd.conf file is a catch all section. All requests to your server with domain names Apache cannot resolve to another VirtualDomain section are served by this first one. You could put a 301 RewriteRule here to redirect visitors to example.com/domain10.com.
Another way is that you put up a simple index.php in the DocumentRoot of this catch-all VirtualDomain and let this index.php display a parked page.