Much depends on your hosting provider config. Typically when I set up add-on domains on mine. They ask me which directory I’d like to
use to host that. Sometimes they suggest a directory contained within the doc root, sometimes outside. Setting up that domain does not necessarily install drupal in that directory. Assuming you are using the stock drupal provided .htaccess and that that
file is present it should not be preventing access. However if the htdocs directory for the addon directory was not the directory that you thought it was, and the hosting provider did allow directory listing by default in the apache configuration then you
would experience exactly the error that you’re getting. So my best guess is that the drupal source code is not in the htdoc root of the addon domain, like you think it is.
Dave
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org]
On Behalf Of lamp@afan.net
Sent: Thursday, February 21, 2013 5:32 PM
To:
Subject: [support] Problem with running Drupal 7 on Addon domain
Hi to all!
I created an account with shared hosting company using domain e.g. "maindomain.com".
My friend actually has two domains (two different web sites) and I instaled 2nd domain as an addon (let's say addondomain.com).
I installed on both domain Drupal 7 with success. But, when I try to access to addondomain.com I would get "403 Permission Denied" error messge.
I contacted hosting company and the guy from tech support said it's because .htaccess from maindomain.com doesn't allow access to addondomain.com.
I remember I had once installed Drupal 6 on "main" domain as well as on addon domains and it worked just fine.
What should I do?
Thanks for any help,
LAMP