How to add virtual hosts to be upgrade safe??

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I'm looking at installing BaiKal into my DA server. I've followed their directions so far, but I'm now at the following:
Code:
In our example, we will assume that the apache2 configuration directory is: `/etc/apache2`

```sh
# a. Enter the Apache2 configuration directory
$ root:/var/www> cd /etc/apache2

# b. Enter the sites-available directory
$ root:/etc/apache2> cd sites-available

# c. Symlink the Baikal virtualhost file to this directory
$ root:/etc/apache2/sites-available> ln -s /var/www/dav.mydomain.com/Specific/virtualhosts/baikal.apache2

# d. Customize the virtualhost config file
$ root:/etc/apache2/sites-available> nano baikal.apache2

# e. In baikal.apache2, replace references to dav.mydomain.com with your own domain name

# f. Activate the new virtualhost
$ root:/etc/apache2/sites-available> cd ../sites-enabled
$ root:/etc/apache2/sites-enabled> ln -s ../sites-available/baikal.apache2

# h. Restart apache
$ root:/etc/apache2/sites-enabled> /etc/init.d/apache2 restart
Now, there obviously isn't sites-available directory with the CentOS 6.3 & DA setup. So, I'm curious if adding this vhost is as simple as creating a symlink to the /var/www/html/baikal directory with the vhost file? Or, is there a better way of doing it??

Any help would be greatly appreciated.
 
I was able to figure out what I needed to do.

Once I get this working I will submit a thread to make as a guide on installing Baikal. I've got it installed and working but am trying to get it working with iphone now.
 
I had those rewrite rules in the httpd virtualhost but it still wasn't working.

I've installed OwnCloud at the server level instead and it is working perfectly.
 
Back
Top