My default website comes up fine and the main ip address opens the default as well., but the rest come up with:
You don’t have permission to access / on this server.
I looked in Apache, but the config file seems to be set right for this problem. <Files ~ “^.ht”>
That’ll sometimes happen if there’s no index file for your websites.
Is there an index.html, index.php, or related file for the domains that are displaying the error you’re seeing?
that’s what it is. Why isn’t an index file being created when I create a virtual server?
An index file is part of your website… creating a Virtual Server makes it so that you can upload a website.
But – by default – it doesn’t upload one for you, as it doesn’t know what you want there
One way to have a default site put in place would be to create it in /etc/skel/public_html.
The contents of /etc/skel are used for new sites. If you create a /etc/skel/public_html/index.html file, it would be copied to every new Virtual Server created.