logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Getting 500 Error with wss:// in Apache VHost Configuration
Author
arakpt



Joined: 25 Jul 2021
Posts: 9
Location: jakarta

PostPosted: Thu 02 Nov '23 17:18    Post subject: Getting 500 Error with wss:// in Apache VHost Configuration Reply with quote

I apologize in advance if this question might seem off-topic for an Apache forum, but it's related to the Apache HTTPd server I'm using.

I have a Linux server with the following configuration:

    Linux hostname 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
    Server version: Apache/2.4.6 (CentOS) Server built: Apr 5 2023 17:18:30
    It's also running V2Ray to handle connections on port 8080


Here's my vhost.conf file:

Code:
<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName hostname
    DocumentRoot /home/wwww
    <Location "/server">
        ProxyPass wss://127.0.0.1:8080/server
        ProxyPassReverse wss://127.0.0.1:8080/server
    </Location>
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/hostname/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/hostname/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/hostname/chain.pem
</VirtualHost>
</IfModule>



My issue is with the ProxyPass and ProxyPassReverse directives in the <Location "/server"> section. I'm getting a 500 error when using wss://, but there's no problem when I use ws://. Interestingly, I don't face any issues on port 80 in my vhost configuration, and there's no useful information in /var/log/httpd/error_log.

Can anyone help me understand why I'm encountering this error with wss:// in this specific location path, and how I can resolve it?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Nov '23 14:06    Post subject: Reply with quote

500 is a configuration error. Is there anything in the error log?
Or is it a 502 error?
Back to top


Reply to topic   Topic: Getting 500 Error with wss:// in Apache VHost Configuration View previous topic :: View next topic
Post new topic   Forum Index -> Apache