I have no experience with Apache. I was tasked with installing
Testlink, a tool, on a machine. The installation of Testlink went
fine except for setting up its web interface. Testlink requires that
I place the testlink directory in /var/www, so that there is a /var/
www/testlink directory.
The machine already has Bugzilla installed on it. We want to run both
Testlink and Bugzilla on the machine but when installing Bugzilla, I
had to change some configurations in the /etc/apache2/sites-available/
default file. I installed Bugzilla first. It changed the default
directory from /var/www to /var/www/cgi-bin/bugzilla3.
So, if I'm on a web browser, like Firefox, and I type in the URL
address of the machine, like host.mycompany.com, the web browser shows
the Bugzilla web application. But if I try the URL host.mycompany.com/
testlink, I get a 404 error with this message:
"The requested URL /testlink was not found on this server."
In the default file, the configuration is:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/cgi-bin/bugzilla3
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory /var/www/cgi-bin/bugzilla3>
AllowOverride None
AddHandler cgi-script .cgi
Options +FollowSymLinks +indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
Allow from all
</Directory>
</VirtualHost>
How do I configure the default file so that if I enter
<host.mycompany.com/testlink> at a web browser, Apache directs the
browser to /var/www/testlink but if I enter <host.mycompany.com/
bugzilla> at the web browser, Apache directs the browser to /var/www/
cgi-bin/bugzilla3?
Do I have to add a <Directory> entry for Testlink?
<Directory /var/www/testlink>
AllowOverride None
Options +FollowSymLinks +indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
Allow from all
</Directory>
Try "Alias"/"AliasMatch" or "Rewrite".