Problem with new subdomains


I have a stranger problem in my cloud.

When I add new subdomain (vhost), the new subdomain go to a folder is different that I determine it. Any new subdomain go to the same folder.

All new subdomains go to the same folder.

There is no error or wrong syntax in 000-default.conf, And I checked the redirections, there is no redirection !!

I cannot find the problem, I hope to find help.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


You need to create a new config file for each new subdomain you create.

Please refer to this tutorial for help.


Did you restart apache after adding the subdomains? That’s needed.