Skip to content

Running VS Code Server with Apache2 Proxy #96

Answered by Complexicon
nvima asked this question in Q&A
Discussion options

You must be logged in to vote

Hey i set openvscode up today at my workplace and you need to add a websocket proxy to your apache config then it should work fine.

this is the config i use

<VirtualHost *:443>
        ServerName <your-vhost-domain>

        <Location />
                AuthType Basic
                AuthName "VSCode Login"
                AuthUserFile "/etc/apache2/htpasswd"
                Require valid-user
        </Location>

        SSLEngine on
        SSLCertificateFile "/etc/apache2/ssl_certificate.pem"
        SSLCertificateKeyFile "/etc/apache2/ssl_certificate_key.pem"

        RewriteEngine on
        RewriteCond %{HTTP:Upgrade} websocket [NC]
        RewriteCond %{HTTP:Connection} upgrade [NC…

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
7 replies
@nvima
Comment options

@nvima
Comment options

@WarDrake
Comment options

@nvima
Comment options

@starmadegeek
Comment options

Answer selected by nvima
Comment options

You must be logged in to vote
4 replies
@WarDrake
Comment options

@Verhoeckx
Comment options

@WarDrake
Comment options

@Verhoeckx
Comment options

Comment options

You must be logged in to vote
5 replies
@Verhoeckx
Comment options

@starmadegeek
Comment options

@WarDrake
Comment options

@starmadegeek
Comment options

@jeanp413
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants