On 3/15/2012 4:11 PM, Douglas Hubler wrote:
I had to unraveled apache config in 4.6 when we introduced cfengine.
For admin interface I decided to go for simple apache config instead
of static html landing page w/meta tag. I came up with an apache
config.  This redirects http requests to admin ui to https and
redirects "/" to "/sipxconfig".   This works, i just want to pass this
thru and apache gurus for validation.

RewriteEngine On
RewriteCond   %{SERVER_PORT}  !^443$
RewriteRule ^/sipxconfig/(.*)$ https://%{SERVER_NAME}/sipxconfig/$1 [L,R]
RewriteRule ^/+$ https://%{SERVER_NAME}/sipxconfig/ [L,R]

ProxyPass        /sipxconfig http://127.0.0.1:12000/sipxconfig
ProxyPassReverse /sipxconfig http://127.0.0.1:12000/sipxconfig
Try this:
<Location /sipxconfig>

   RewriteEngine on
   RewriteCond   %{HTTPS}  !=on
   RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
   #if proxy to a different box using https enable the next 2 lines
   #SetEnv proxy-sendcl 1
   #SetEnv force-proxy-request-1.0 1
   ProxyPass        http://127.0.0.1:12000/sipxconfig
   ProxyPassReverse http://127.0.0.1:12000/sipxconfig

</Location>


P.S. I took care of this by removing "base" tag altogether
  http://thread.gmane.org/gmane.comp.voip.sipx.devel/6362
Damian never said why tag was needed at all.  I read up on the base
tag and i don't think we need it.  Basic test verifies we do not need
it.

P.P.S.  We using the apache server now that's managed by the OS
instead of launching an apache instance with a separate config file.

P.P.P.S This means we can remove https listener on sipxconfig or any
other internal service if we want and proxy them all thru single
apache server. I'll wait on this one. But it will definitely make
installing web certs easier if nothing else.
Happy days!


--
Regards
--------------------------------------
Gerald Drouillard
Technology Architect
Drouillard&  Associates, Inc.
http://www.Drouillard.biz

_______________________________________________
sipx-users mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users/

Reply via email to