Here the configuration script for the httpd-vhosts.conf file of httpd apache server.

In the following example connection from <name.domain> from port 443 are proxied via https and gzip compressed.

Note: The receiver is a node.js server serving static html file (sveltekit).

<VirtualHost *:443>
    ServerAdmin <email>
    ServerName <name.domain>
    ServerAlias <name.domain>
    ProxyPreserveHost On
    ProxyRequests Off
    SSLProxyEngine On
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off
    SSLCertificateFile "<path>/<name>.crt"
    SSLCertificateKeyFile "<path>/<name>.key"
    SSLCertificateChainFile "<path>/<name>chain"
    ProxyPass / https://<host>:<port>
    ProxyPassReverse / https://<host>:<port>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
    <Location />
	 Order deny,allow
         Allow from all
    	 SetOutputFilter INFLATE;DEFLATE
    </Location>
</VirtualHost>
Categories: Server

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published.