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>
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

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 = "";

This means that the url for accessing webwork is

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.)