Score:-1

Using Apache proxy pass not forwards with port

br flag

I have some websites on my server and few of them have proxy pass and they are passing some port to some subdomain. But now I'm trying to add another subdomain for Webmin, but it doesn't forward to the port.

This is site.conf:

    <VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName webmin.site.tld
    ProxyPreserveHost On

    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    ProxyPass / http://'publicip':10000/
    ProxyPassReverse / http://'publicip':10000/

RewriteEngine On
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]

RewriteCond %{SERVER_NAME} =webmin.site.tld [OR]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/webmin.site.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/webmin.site.tld/privkey.pem
</VirtualHost>

This is the screen shot of what I see: and this is the screen shot of what I see

Then if I use 10000 port I will see: Then if I use 10000 port I will see

So as I know Apache doesn't forward the request to port 10000 and with the same config I have some websites running, and the bind9 is ok, certificate is ok.

What I missed?

Score:0
in flag

The error message tells you exactly what to do. Use https instead of http.

ProxyPass / https://192.168.1.100:10000/
ProxyPassReverse / https://192.168.1.100:10000/

Alternativeley, configure webmin not to use https.

Reza Azimi avatar
br flag
I tried that in apache, didn't work! :( But I didn't config ssl on webmin let me check that.
Reza Azimi avatar
br flag
OH! turning off ssl in miniserv.conf worked. Thank YOU.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.