subdomains

4 posts / 0 new
Last post
#1 Sat, 01/16/2010 - 16:06
Steffan
Steffan's picture

subdomains

I'm new to Virtualmin. I have my dns already setup on another server and am not quite ready to move it over so I just created a virtual domain for testing.

So, I login to the account to check things out. Well, in my case I have a www.domain.tld and domain.tld that need to have a generic place holder directory/index file but dev.domain.tld linked to another folder. Would I really need to have 2 accounts for this or can it be setup under the one account?

Thanks, Steffan

Sat, 01/16/2010 - 16:53
Steffan
Steffan's picture

Ok, I see, maybe I'm wrong, but you need to create a subdomain from the virtualmin root account. Ok, fine and dandy but I see in the /home/site that it creates a domain folder. Why not put a default folder int here and not just the sub.domain.tld folder? If I move the www into the domains folder and change the path to it, will it screw with awstats etc?

Thanks, Steffan

Sat, 01/16/2010 - 21:09 (Reply to #2)
Steffan
Steffan's picture

Well, I think I am slowly getting it but it seems that if you create a new domain/account it should setup the apache directories in /home/account/domains/www since subdomains are in /home/account/domains why not put the main in there. I edited the template to do this but it's not working as I'd thought it should. Sure, the apache directives are right but the directories are not created to match the apache config.

Example: ServerName ${DOM} ServerAlias www.${DOM} DocumentRoot ${HOME}/domains/${DOM}/public_html ErrorLog /var/log/virtualmin/${DOM}_error_log CustomLog /var/log/virtualmin/${DOM}_access_log combined ScriptAlias /cgi-bin/ ${HOME}/domains/${DOM}/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Options -Indexes +IncludesNOEXEC +FollowSymLinks allow from all AllowOverride All allow from all

Sat, 01/16/2010 - 21:46 (Reply to #3)
Steffan
Steffan's picture

After playing with the template, it's working all except the cgi-bin folder. Where can I configure where to put that folder? I'm not seeing it in the template.

Topic locked