I'm trying to use proxypass for a specific directory so I can point it to my express.js server https://othersite.life:1447/
Been stuck on this one for hours now. Would really appreciate some insight.
I have enabled these mods and I'm editing /sites-enabled conf file.
proxy
proxy_http
proxy_connect
proxy_ftp
<VirtualHost 117.123.133.207:80>
ServerName s33d.cf
ServerAlias www.s33d.cf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/s33d.cf
SSLProxyEngine on
<Directory /var/www/html/s33d.cf>
Options -Indexes +FollowSymLinks
AllowOverride All
LogLevel warn
</Directory>
ErrorLog error.log
RewriteEngine on
ProxyRequests Off
ProxyPreserveHost On
RewriteCond %{SERVER_NAME} =www.s33d.cf [OR]
RewriteCond %{SERVER_NAME} =s33d.cf
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /var/www/html/s33d.cf/node https://othersite.life:1447/
ProxyPassReverse /var/www/html/s33d.cf/node https://othersite.life:1447/
</VirtualHost>
The domain s33d.cf works fine but when I go to s33d.cf/node it doesn't use the proxypass settings. Both sites are hosted on same server.
I get no errors as far as I can tell.