Hi Matt,
Perhaps this helps, otherwise I'n not sure what the exact problem is.
I'm running vhosts in apache2. One of them is opsview, served by https -
for which I use a mod_rewrite.
So:
in /etc/apache2/sites-available/opsview
<VirtualHost *:443>
[chop]
vhost config
[chop]
RewriteEngine On
RewriteOptions Inherit
RewriteCond %{HTTP_HOST} !=opsview.my domain
# checking for non-empty host header
RewriteCond %{HTTP_HOST} !=""
RewriteRule ^/(.*) https://opsview.my domain/$1 [R=301,L]
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from <certain ip addresses>
Allow from 127.0.0.1
</Proxy>
# Don't proxy error pages as these are served statically
ProxyPass /error_pages !
ProxyPass /javascript !
ProxyPass /stylesheets !
ProxyPass /help !
ProxyPass /images !
ProxyPass /xml !
ProxyPass /favicon.ico !
ProxyPass /graphs !
ProxyPass /static !
ProxyPass /nagvis !
# Add line below for apache 2.2 as opsview-web down is a 503 error
ErrorDocument 503 /error_pages/http502.html
# Use line below for apache 2.2, because takes a long time for
apache to realise opsview-web has started otherwise
ProxyPass / http://127.0.0.1:3000/ retry=5
ProxyPassReverse / http://127.0.0.1:3000/
ProxyPreserveHost Off
TKTAuthSecret "<whatever>"
<Location /nagvis>
AuthType None
TKTAuthLoginURL /login?app=nagvis
TKTAuthTimeout 86400s
require valid-user
</Location>
</VirtualHost>
This has a link to site-enabled, after which a restart of apache2 result
in https://opsview.my domain
Don't forget the opsview.my domain needs to be resolvable , by either
local dns or Internet DNS - or both :)
hth
paul
Matt White wrote:
Sorry the proxypass is not the issue i have its the mod-rewrite "You
will also want to add a mod-rewrite rule for all the static ProxyPass
exception entries, otherwise those files are delivered by opsview-web,
rather than Apache."
This is the bit that I cant get my head round
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of *Ben
*Sent:* 28 May 2009 19:36
*To:* Opsview Users
*Subject:* Re: [opsview-users] Repathing Opsview directories
The snippet is on that doco page, i'm not real sure what you're asking
here.
One problem you might be having is if you have those ProxyPass
statements in your apache config, they might not be under the vhost
you're pointing at. Use "httpd -S" to find out what vhost config
file/location in that file corresponds to the hostname you're
requesting with your browser.
All this assumes you're using apache and not just pointing to
http://hostname:3000/ of course.
On Thu, May 28, 2009 at 1:19 PM, Matt White <[email protected]
<mailto:[email protected]>> wrote:
Sorry to bump this but is anyone able to shed some light on this at all?
I have had a few attempts but am struggling to get it working.
Any help is much appreciated
Kind regards,
Matt
*From:* [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]>] *On Behalf Of *Matt
White
*Sent:* 22 May 2009 21:54
*To:* Opsview Users
*Subject:* [opsview-users] Repathing Opsview directories
Hi guys,
Wondering if someone could save me some trouble learning how to create
the mod-rewrite rules for apache when re-pointing Opsview away from
the root of the server.
I have followed
http://docs.opsview.org/doku.php?id=opsview3.0:advancedapache and am
lost at the last step (was hoping for a nice snippet that could go in
the conf file) My apache knowledge isn't great so any help would be
appreciated.
Thanks in advance
Matt
_______________________________________________
Opsview-users mailing list
[email protected] <mailto:[email protected]>
http://lists.opsview.org/listinfo/opsview-users
--
Ben Lutgens
Linux / Unix System Administror
Three of your friends throw up after eating chicken salad. Do you think:
"I should find more robust friends" or "we should check that
refrigerator"?
-- Donald Becker, on vortex-bug, suspecting a network-wide problem
------------------------------------------------------------------------
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/listinfo/opsview-users
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/listinfo/opsview-users