Installation

Installing webwork as a subdomain?

Re: Installing webwork as a subdomain?

by Alasdair McAndrew -
Number of replies: 0
Thanks for your reponse.

In actual fact I worked it out: in the virtual host file, I need to include the extra line which sources the necessary config file, thus:

<VirtualHost *:80>
ServerName webwork.myserver.net
ServerAdmin webmaster@localhost
DocumentRoot /opt/webwork/webwork2
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include conf-enabled/webwork.conf
</VirtualHost>


This file contains all the perl handlers needed, and apache manages fine with it. I also had to change the server url in webwork's site.conf:

$server_root_url = "http://webwork.myserver.net";

This means that the url for accessing webwork is

http://webwork.myserver.net/webwork2

but that's OK, even though it would have been nice not to have to have the extra webwork2 at the end. (I tried changing the value of $webwork_url to "", but that didn't work.)