Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I set up 2 or more "default" locations?

0 views
Skip to first unread message

SQA777

unread,
Nov 2, 2009, 7:36:04 PM11/2/09
to
The Subject line might be misleading so please bear with me.

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>

D. Stussy

unread,
Nov 2, 2009, 8:57:47 PM11/2/09
to
"SQA777" <sqa...@gmail.com> wrote in message
news:7521fdb1-cd45-4c0e...@a37g2000prf.googlegroups.com...

Try "Alias"/"AliasMatch" or "Rewrite".


0 new messages