I'm running apache 2.2.12 on Ubuntu 9.10 server. It's a basic install with mostly default settings (I changed the doc root from /var/www to /var/www/html for the default site, and placed the index.htm file accordingly). The server will properly server the default index.htm page to IE or firefox browsers.
I am running proprietary database software that uses a local client or a web-based client. The local client works fine, but web client does not. I can navigate to the main page using this link
http://99.66.152.2/ttweb/login.htm. The page displays correctly. If I click on the login button the cgi script executes, but elements are not displayed, and all the formatting is absent. I clicked on the properties of one of these missing elements and the URL it is looking for is incorrectly shown as
http://var/www/html/ttweb/images/btn_msthd_logout_d.gif as an example. It looks like it is using the document root ( /var/www/html ) instead of the server address. The element is accessible in a separate page if I replace "/var/www/html" with the server's IP address. I tried to authenticate but the server returns a 404 error because it is trying to access a cgi script at
http://99.66.152.2/var/www/cgi-bin/ttcgi.exe. The correct link should not have "/var/www" in the middle, just
http://99.66.152.2/cgi-bin/ttcgi.exe. I don't know where the problem is, is it the CGI script or is it my apache config? This is the default site .conf file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
AddHandler cgi-script .cgi .exe .pl
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>