Virtual Hosting on Apache 2.0.55

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
MichelleM
Posts: 37
Joined: Thu Apr 26, 2007 8:41 am

Virtual Hosting on Apache 2.0.55

Post by MichelleM »

I've already read the posting at http://forums.timetrex.com/viewtopic.php?t=83 and tried to imitate it, but I've had no luck.

I'd like a server called "timesheet" that when you go to it, the TimeTrex login screen is there.

Environment:
3. What version of TimeTrex you are running, specifically. (stating "the latest version" is not specific enough)
TimeTrex 1.6.3
4. What version of PHP you are using.
PHP 5.1.2 with MySQL 5.0.22-Debian
5. What operating system you are running.
Ubuntu 6.0.6 server
6. What web server you are using.
Apache 2.0.55

I'm running two virtual servers on one Apache system. Here's part of the virtual hosts file:

Code: Select all

NameVirtualHost *:80
<VirtualHost *:80>
	ServerAdmin webmaster@localhost	
	DocumentRoot /var/www/testing
	ServerName testing.myserver.net
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/testing/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		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
	ServerSignature On
 </VirtualHost>

<VirtualHost *:80>
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/testing/timetrex/interface
	ServerName timesheet.myserver.net
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/testing/timetrex/interface/>
		Options All
		AllowOverride None
		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
	ServerSignature On

</VirtualHost>
My timetrex.ini.php file with the pertinent line of code:

Code: Select all

base_url = /
Bascially, this doesn't work. I sometimes get errors in the error log (apache), sometimes not. If I've already logged on and did not log off, my information is displayed, but without any style sheets. If I click on the "TimeTrax" logo, the link is to http://index.php/ which isn't going to work. If I click on the "Home" link, it's this: http:/// which again won't work.

It would be nice for the users if I could get this working.

I have also tried commenting out the first virtual server and it doesn't improve matters WRT behavior. I even poked around in the index.html file and noticed the meta-refresh attributes WRT url=interface/.

I set the log level to "debug" and there's plenty of stuff in messages and syslog but it's too much to post. If you think they'll help, I'll get them along to you.

thanks!
Michelle
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

In your Apache config try changing:
<Directory /var/www/testing/timetrex/interface/>
to
<Directory /var/www/testing/timetrex/>
TimeTrex should automatically redirect them into /interface for you.
Locked