Personal tools
You are here: Home Documentation FAQs How do I assign text URLS instead of port numbers?
Document Actions

How do I assign text URLS instead of port numbers?

Up to Table of Contents

This FAQ applies to: 3.0, 3.1, 3.2

We would like to use separate URLs for the OPAC and Admin portals instead of using different port numbers.

You will need two different host names, one for OPAC, one for Admin.

Example, using your email domain:

library OPAC domain: library.solanco.k12.pa.us

library admin domain: admin.solanco.k12.pa.us

Ensure these two domains are added to your domain server.

Once you can see the domains on your LAN or on the open Internet, edit the Apache config for the virtual hosts, which is either in /etc/apache2/sites-available/default or (rarely) /etc/apache2/httpd.conf.


Remove '8080' stuff, keeping both virtual hosts, and ensure the virtual hosts look something like the following:


# KOHA's OPAC Configuration
<VirtualHost *>
       DocumentRoot /usr/local/koha/opac/htdocs
       ServerName library.solanco.k12.pa.us
  : etc :
</VirtualHost>



# KOHA's INTRANET Configuration
<VirtualHost *>
       DocumentRoot /usr/local/koha/intranet/htdocs
       ServerName admin.solanco.k12.pa.us
  : etc :
</VirtualHost>


Also edit /etc/apache2/ports.conf and remove the listen on port 8080 as well.

Restart apache and test.

ports.conf

Posted by Rick Welykochy at Jun 19, 2009 11:02 PM
As well, let's assume the IP address of your server is 10.11.12.13
Your ports.conf file should look like the following:

ServerName 10.11.12.13
Listen 80

NameVirtualHost

Posted by Rick Welykochy at Jun 19, 2009 11:04 PM
Also ensure that the following directive is in your Apache config file:

NameVirtualHost *