Here is what I have tried so far, but to no avail.
ServerName otrs.mydomain.com
ServerAlias otrs.mydomain.com
ServerAdmin support@mydomain.com
DocumentRoot /usr/local/otrs/bin/cgi-bin
DirectoryIndex /index.pl
ErrorLog /var/log/apache/otrs-error.log
CustomLog /var/log/apache/otrs-access.log common
Alias /otrs-web "/usr/local/otrs/var/httpd/htdocs"
<Location />
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Here's the deal, now. I can actually log in, but all my graphics are missing (items under /otrs-web). Here is the error I get when trying to directly go to a picture:
Forbidden
You don't have permission to access /otrs-web/images/Standard/warning.png on this server.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at otrs.mihlfeld.com Port 80
It seems to obviously be a permissions error. The odd part is all the permissions are in place from how the readme says (on the file structure) and they work fine when I'm not using a name-based virtualhost:
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
Alias /otrs/ "/opt/otrs/bin/cgi-bin/"
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>
That works just fine when I'm not going for a name-based virtualhost (which I want one, though). So I think the webserver has the right access to the physical location, but I'm obviously not setting it up right in the http.conf file for it to access the files. Also, another oddity with the virtualhost part is in Windows, I can type http://otrs.mydomain.com and it will go to the index.pl login page. In linux it will try to download some file unless I explictly type in http://otrs.mydomain.com/index.pl This is not the issue with the non-virtualhost type setup (ie: http://www.mydomain.com/)
Anyway, I just wanted to provide some more information. I'm sure this is an easy fix, but it's escaping me right now given my apache knowledge isn't the greatest.
Thanks!
-----Original Message-----
From: Erik Spigle
Sent: Monday, November 17, 2003 11:57 AM
To: otrs@otrs.org
Subject: [otrs] Setup OTRS to use a virtual host (ie: otrs.domain.com)
I got OTRS up and running just fine with its default setup in apache where it resudes under your domain as a sub-directory (ie: www.domain.com/otrs). However, what I would like to do is actually set it up as its own virtual name host (ie: otrs.domain.com). That would put the root of the site at that virtual host rather than /otrs behind whatever the host is. I'm not the greatest with apache virtual hosts, but I can mak them work for the most part. It seems that OTRS is a bit different in how it works and I'm not readily figuring out how to make it work as a virtual host, however.
I am trying to set it up under Apache 1.3.27 on a Debian Testing box. Can someone show me how I can adapt the example configuration for apache into one that uses a virtual name host and where the root of the site resides right under that address (ie: otrs.domain.com) instead of a subdirectory (ie: www.domain.com/otrs or otrs.domain.com/otrs).
Thankyou
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting für Ihr OTRS System?
=http://www.otrs.de/