Report this

What is the reason for this report?

Problem with new subdomains

Posted on January 11, 2019

Hi,

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.

Thanks



This textbox defaults to using Markdown to format your 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.

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

Cheers

@magha

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

Please refer to this tutorial for help.

Mouhsen

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.