serveradmin stop web; serveradmin start web/webcal is also defined here. So if you would prefer to use /ical then it can be changed, albeit likely breaking many of the internal links for the portal. One may be tempted to add /ical by adding an “Alias /ical /usr/share/webcal.html” line in the httpd.conf file in /etc/apache2, but that simply results in an error. So doing a redirect, as I showed previously seems to be the only way to get the response of the actual /webcal page (401 redirects do not seem to work). Another issue that I’ve run into is getting virtual hosts to work in the first place, in order to define non-page centric forwards. This was fixed by uncommenting the following line in the httpd.conf (removing the # in front of the line):
Include /private/etc/apache2/extra/httpd-vhosts.confThen, you can add vhosts as usual in /etc/apache2/extra/httpd-vhosts.conf. Having said that, the only redirect I’ve gotten to work so far have been per page. I’ll likely figure out more on these subtle changes as time goes on, but more important than these specifically, hopefully this will point others to where some of these settings are stored (e.g. for webmail and other services in OS X Server). For example, let’s say you wanted to disable the web calendar and webmail altogether (for whatever reason). In that case, look for these two lines in /etc/apache2/httpd.conf (respectively):
Alias /webmail /usr/share/web/webmail.html Alias /webcal /usr/share/web/webcal.htmlPut a # in front of each to comment them out and then restarting the web service. It’s not pretty and webmail should be disabled in the Web service, but web calendars aren’t exposed in the GUI at this time and I wanted to show both. Anyway, this article is rambling on a bit like a Douglas Adams book. So, so long, and thanks for the phishing attacks!
krypted September 22nd, 2011