Is it possible use Subdomain without access to httpd.conf? In installation step 4 (Configure wildcard virtual hosts) there´s only a guide for editing httpd.conf (if using Apache) - is it impossible to make the necessary changes in .htaccess instead? Maybe this should/could also be stated clearly in the docs?

Comments

setvik’s picture

You can use Subdomain even if you don't have access to your httpd.conf if your hosting provider is willing to enable wildcard subdomains for your domain on your behalf.

What the httpd.conf VirtualHost modification does is tell Apache to forward subdomain requests (subdomain1.example.com, subdomain2.example.com, et cetera) to the directory where all your website files are living.

Absent instructions in the httpd.conf on what to do with subdomain requests, Apache will forward them to the server's default virtual host web directory (not your website).

It may be possible to stick VirtualHost declarations in the htaccess file (i'm not certain), but it wouldn't help in this situation, b/c Apache wouldn't know to look in your website directory and read the .htaccess file there. A catch-22 of sorts.

Good idea re: documentation; i'll take a peak at the readme.txt file this week and see if I can make it a bit clearer.

pyrello’s picture

I use a reseller package from hostgator.com and they suggested to me that I might try setting up a wildcard subdomain using cpanel. So I set up the subdomain *.example.com and that worked!

I don't know that this will work for all set-ups, but it worked for me.

setvik’s picture

Status: Active » Fixed

awesome! Thanks for posting about the fix you found :-). That'll definitely help other people in the same boat.

911’s picture

I use shared hosting and have no access to server configs. Is it possible to use subdomain modul by manualy creating the subdomains and pointing them to the drupal root or something?

I want to build a site 10 different node types which have their own subdomains. So it would be no Problem to set up the 10 Subdomains manually in my hosters domain administration and point them to a drupal folder.

Can I get the subdomain modul work like this? Which folder should the sobdomains point to?

[EDIT]
OK. I got this work. Setting up the subdomains manually and pointing them to drupal root.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sorensong’s picture

I simply created a subdomain in cPanel and adjusted my settings.php and it seems to be working flawlessly. It's beyond me why these (alternative) install instructions aren't provided in the documentation.