Default website fine / permission problems on rest.

4 posts / 0 new
Last post
#1 Wed, 03/17/2010 - 07:47
eboughey

Default website fine / permission problems on rest.

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.

Wed, 03/17/2010 - 09:09
andreychek

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?

-Eric

Wed, 03/17/2010 - 09:19
eboughey

that's what it is. Why isn't an index file being created when I create a virtual server?

Wed, 03/17/2010 - 09:27
andreychek

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.

-Eric

Topic locked