Hello,
I bought a domain and put an A record there to redirect to the server. This works perfectly, but redirects to the main root. How can i point that domain to a specific folder on the server?
Regards
[SOLVED] Domain A record on registrar to directory on server?
Re: Domain A record on registrar to directory on server?
If I understand your question, this would be done on the server, using whatever web server you use to direct queries to the proper directory. If 1.2.3.4 goes to mysite.com, on 1.2.3.4, apache, for example, is running with a configuration file that says DocumentRoot is directoryX, the directory on the server containing your web site.
New users should check the FAQ and Read Me First pages
Re: Domain A record on registrar to directory on server?
Hello,
I know, but i want to use a seperate directory for this domain.
I tried setting up a virtualhost file, but it doesnt seem to work, the domain still shows the main root of the server, instead of the directory i have specified in the virtual host.
I know, but i want to use a seperate directory for this domain.
I tried setting up a virtualhost file, but it doesnt seem to work, the domain still shows the main root of the server, instead of the directory i have specified in the virtual host.
Re: Domain A record on registrar to directory on server?
NVM, i forgot to add:
IncludeOptional sites-enabled/*.conf
to the apache config. Working now
IncludeOptional sites-enabled/*.conf
to the apache config. Working now
Re: Domain A record on registrar to directory on server?
Thanks for coming back and letting us know how you fixed it. There's a good chance it will help others in the future. I'll mark the thread as solved.
New users should check the FAQ and Read Me First pages