How to modify the thruk apache configuration file for not use virtual host?

653 views
Skip to first unread message

Everton Pestana

unread,
Dec 2, 2012, 2:16:30 AM12/2/12
to th...@googlegroups.com
Dear,
Good morning!
I need some help! I've tried several ways to change the file's configração thruk in apache so it ulitize location / instead of / thruk. He is rewriting the url wrong way.
Below is the file that works with trhuk responding in http://hosts/thruk as modify this file so that it responds only in http://host/.

=================thruk.conf==========================
<IfModule mod_fcgid.c>
AddHandler fcgid-script .sh
IPCCommTimeout 120

<Directory /usr/share/thruk>
Options FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>
<Directory /etc/thruk/themes>
Options FollowSymLinks
allow from all
</Directory>
<Directory /etc/thruk/plugins>
Options FollowSymLinks
allow from all
</Directory>

# redirect to a startup page when there is no pidfile yet
RewriteEngine On
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{REQUEST_URI} !^/thruk/startup.html
RewriteCond %{REQUEST_URI} !^/thruk/side.html
RewriteCond %{REQUEST_URI} !^/thruk/.*\.(css|png|js)
RewriteCond %{REQUEST_URI} ^/thruk
RewriteCond /var/cache/thruk/thruk.pid !-f
RewriteRule ^(.*)$ /thruk/startup.html?$1 [R=302,L,NE,QSA]

Alias /thruk/documentation.html /usr/share/thruk/root/thruk/documentation.html
Alias /thruk/startup.html /usr/share/thruk/root/thruk/startup.html
AliasMatch ^/thruk/(.*\.cgi|.*\.html) /usr/share/thruk/fcgid_env.sh/thruk/$1
AliasMatch ^/thruk/plugins/(.*?)/(.*)$ /etc/thruk/plugins/plugins-enabled/$1/root/$2
Alias /thruk/themes/ /etc/thruk/themes/themes-enabled/
Alias /thruk /usr/share/thruk/root/thruk

<Location /thruk>
Options ExecCGI
  AuthName "THRUK LOGON"
AuthType Basic
AuthUserFile /etc/thruk/htpasswd
Require valid-user
</Location>
<Location /thruk/cgi-bin/remote.cgi>
Order Deny,Allow
Allow from all
Satisfy any
</Location>
</IfModule

==============end of file==================================

Already thanks!

Hugs.

Everton.

Krystle Bennett

unread,
Apr 10, 2014, 6:14:13 PM4/10/14
to th...@googlegroups.com
was there ever a resolution to this?  I'm currently trying to figure out the same thing

Everton Pestana

unread,
Apr 10, 2014, 6:34:56 PM4/10/14
to th...@googlegroups.com
a workaround I found was to make a redirect from / to / thruk.
Reply all
Reply to author
Forward
0 new messages