0

i have this Apache conf file below, but after reading alot, i simply have no clue how to make this to a openlitespeed conf file.

It uses reverse proxy, as i want to have a react site running.

Im using aaPanel, it does not support nodejs out of the box, but i now got it running, just cant connect to it (get a 403 forbidden page), but i think i "just" need this file converted.

Looking over documents, i fint no similarities to go out from, unless someone has a link for where i can read apache -> openlitesped so i can actually understand how to rewrite these lines.

<VirtualHost *:443>
    ServerAdmin admin@site_name_dk
    DocumentRoot "/www/wwwroot/mysite.dk"
    ServerName 443.site_name_dk
    ServerAlias mysite.dk
    #errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/site_name_dk-error_log"
    CustomLog "/www/wwwlogs/site_name_dk-access_log" combined

    #SSL
    SSLEngine On
    SSLCertificateFile /www/server/panel/vhost/cert/site_name_dk/fullchain.pem
    SSLCertificateKeyFile /www/server/panel/vhost/cert/site_name_dk/privkey.pem
    SSLCipherSuite EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5
    SSLProtocol All -SSLv2 -SSLv3 -TLSv1
    SSLHonorCipherOrder On

    #DENY FILES
     <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|package.json|package-lock.json|\.env)$>
       Order allow,deny
       Deny from all
    </Files>

    #SSL
    ProxyPass /.well-known/ !

    # HTTP reverse proxy related settings begin >>>
    <IfModule mod_proxy.c>
        ProxyRequests Off
        SSLProxyEngine on
        ProxyPass / http://127.0.0.1:3000/
        ProxyPassReverse / http://127.0.0.1:3000/
    </IfModule>
    # End of HTTP reverse proxy related settings <<<
</VirtualHost>

There is also one for port 80, but only change is the port id, so that no problem.

So any help just getting started even would be appricitated.

burnsi
  • 6,194
  • 13
  • 17
  • 27
Bo Bjering
  • 11
  • 3

0 Answers0