PDA

View Full Version : Setting up a subdomain for forums



GavinH
10-05-2007, 08:21 AM
Hi, love Deki; was chosen by unanimous decision at work when I was testing several wiki's side-by-side. :)

We initially had a forum set up in it's own folder /var/www/forum while we were testing and had deki running in vmware. After installing it directly on the server, it's taken total control over the website (which ultimately is what we're looking for) however I can no longer access the forums by going to mydomain.com/forum.

I've noticed that opengarden.org uses subdomains for the wiki and forums and but can't quite work out what files to edit to set up the forums as a subdomain on my own server.

I've tried setting up VirtualHosts in several different ways according to documentation from apache's site and other sources but for the most part, the whole site goes down when I restart Apache.
I'm guessing that there's something more complex with the way deki is set up compared to the simple examples on these sites.

Would it be possible to get a full list of files to edit and a working example of how to set up a subdomain alongside deki ?

Cheers and thanks for the awesome product so far.

RBF
10-05-2007, 09:20 AM
1. add a VirtualHost-config to /etc/apache2/sites-available like this one:


<VirtualHost *>
ServerName forums.<servername>

ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log common

DocumentRoot "/var/www/forum"
</VirtualHost>

2. create a symlink to sites-enabled


ln -s /etc/apache2/sites-available/<configFileName> /etc/apache2/sites-enabled/<configFileName>

3. reload apache

/etc/init.d/apache2 force-reload
4. add the DNS entry for forums.<servername>

thats it ;)

GavinH
10-05-2007, 02:23 PM
Thanks RBF for the super quick reply.

I'd done 1,2 and 3 several times over, in various ways, but hadn't updated any DNS entries. I guess I assumed a subdomain would be automatically covered by it's parent domain's DNS entry.

Will check it out on Monday.

Cheers

RBF
10-05-2007, 02:30 PM
good luck,
I hope it works :)

but a missing DNS entry wont cause that the whole site isnt working after force-reload ... :confused: