
Hi list, After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex? http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page. Thanks! --per

Per olof Ljungmark wrote:
After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex?
http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page.
Set 'DirectoryIndex index.pl' in your server config/virtual host config/directory config/.htaccess file. http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex Nils Breunese.

Nils Breunese (Lemonbit) wrote:
Per olof Ljungmark wrote:
After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex?
http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page.
Set 'DirectoryIndex index.pl' in your server config/virtual host config/directory config/.htaccess file.
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex
Did that but for some reason it won't catch - tried in several places but no joy. Thanks,

-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Per olof Ljungmark Sent: Tuesday, October 14, 2008 4:23 PM To: User questions and discussions about OTRS. Subject: Re: [otrs] DirectoryIndex anyone?
Nils Breunese (Lemonbit) wrote:
Per olof Ljungmark wrote:
After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex?
http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page.
Set 'DirectoryIndex index.pl' in your server config/virtual host config/directory config/.htaccess file.
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex
Did that but for some reason it won't catch - tried in several places but no joy.
Did you bounce apache? Is the file in the correct physical location/directoy?

LQ Marshall wrote:
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Per olof Ljungmark Sent: Tuesday, October 14, 2008 4:23 PM To: User questions and discussions about OTRS. Subject: Re: [otrs] DirectoryIndex anyone?
Nils Breunese (Lemonbit) wrote:
Per olof Ljungmark wrote:
After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex?
http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page. Set 'DirectoryIndex index.pl' in your server config/virtual host config/directory config/.htaccess file.
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex
Did that but for some reason it won't catch - tried in several places but no joy.
Did you bounce apache? Is the file in the correct physical location/directoy?
Yes I did and yes it is, the missing piece was -Indexes which I thought was the default when DirectoryIndex is set but apparently it was not, it had to be set explicitly. I cannot tell (yes) why this is the case here, according to the Apache docs a DirectoryIndex should do the job and this is my own experience. This is also the reason I choose to post @otrs instaed of the Apache list. Thanks,

http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex
On Tue, Oct 14, 2008 at 9:55 PM, Per olof Ljungmark
Hi list,
After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex?
http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page.
Thanks!
--per _______________________________________________ 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

Per olof Ljungmark wrote:
Hi list,
After a few pains moving OTRS from Apache 1.3 to 2.2 I'm left with one(?) final piece that I cannot get my grips on: How do I configure Apache to use index.pl for DirectoryIndex?
http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page.
Answering myself here, of course I found a solution just after I sent the mail. Adding -Indexes did it. There might be others of course so if you have better ideas feel free to shout! Thanks for great piece of software anyway... --per

http://mytld/otrs/ just returns the directory listing so I have to point to http://mytld/otrs/index.pl explicitly to get the login page.
This is an apache configuration not OTRS (it could be argued that otrs should do this during setup) however the following lines placed in the apache configuration will affect the changes you ask. Exactly where, which file, they should be placed is dependant on the specifics of your apache configuration. The least intrusive place is probably via a .htaccess file in the otrs web root directory. DirectoryIndex index.pl Options -Indexes The first line will have apache return the login page when the directory folder is requested. The second line inhibits the directory listing option from being returned. LQ
participants (4)
-
LQ Marshall
-
Nils Breunese (Lemonbit)
-
Paul Dale
-
Per olof Ljungmark