Cockpit within httpd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Folks

I'd love to use Cockpit, but I cannot open port 9090 for the access in all cases. I'd like to access it via my usual http port (such as 80) where I'm limited to a single HTTP port. I understand the security implications, and can deal with them later.

My attempt was to allow the following URL to access the cockpit functionality:

  http://xxx.example.com/cockpit
(not the real URL)
where 'xxx.example.com' is one of the virtual web sites on my server.

I tried as follows for the definition of the virtual server:

<VirtualHost *:80>
 ServerName              xxx.example.com
 ServerAdmin             admin_xxx@xxxxxxxxxxx
 DocumentRoot            /home/xxx/public_html
 Options                 +ExecCGI +Includes +FollowSymLinks
 LogFormat               Combined
 TransferLog             /var/log/httpd/u_xxx_access_log
 ErrorLog                /var/log/httpd/u_xxx_error_log
 RewriteEngine           on

 ProxyPreserveHost       On
 RewriteCond             %{HTTP:Upgrade} =websocket [NC]
 RewriteRule             /cockpit/(.*)   ws://127.0.0.1:9090/$1 [P,L]
 RewriteCond             %{HTTP:Upgrade} !=websocket [NC]
 RewriteRule             /cockpit/(.*)   ws://127.0.0.1:9090/$1 [P,L]
 ProxyPass               /cockpit/       http://127.0.0.1:9090/
 ProxyPassReverse        /cockpit/       http://127.0.0.1:9090/
</VirtualHost>


All I get is a blank page displayed when I try to access the url. Testing Cockpit by accessing port 9090 works fine.

Am I missing something?

Thanks in advance
David


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux