Sub Domain set up problem

say I own this domain (, In order for laravel 5 to work, I need to configure AllowOverride all for sub domain as well.

1 . I create api.conf as following

<VirtualHost *:80>
  DocumentRoot /var/www/html/api/public
  <Directory "/var/www/html/api/public">
    AllowOverride all
  1. then I run a2ensite api.conf

  2. service apache2 reload. However, When I type in, it display this This webpage is not available ERR_NAME_NOT_RESOLVED

Something wrong along the way, any ideas or suggests? thank you

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


Have you made an A record (or cname) for the subdomain you would like to use? This error is shown when a hostname for example isn’t getting resolved by the DNS nameservers.