Reverse proxy for nodejs process
- Get link
- X
- Other Apps
sudo vim /opt/lampp/etc/extra/httpd-xampp.conf
<VirtualHost *:80>
ServerAdmin hmdlohar@gmail.com
ServerName skillora.thehypertech.in
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://localhost:2080/
ProxyPassReverse http://localhost:2080/
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerName skillora.thehypertech.in
# setup the proxy
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/hpws [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:2999 [P,L]
ProxyPass / http://localhost:2080/
ProxyPassReverse / http://localhost:2080/
SSLEngine on
SSLCertificateFile /ssl/certificate.crt
SSLCertificateKeyFile /ssl/private.key
</VirtualHost>
// Static hosting
<VirtualHost *:80>
ServerAdmin hmdlohar@gmail.com
DocumentRoot /var/www/ui
ServerName hyperprint.uk.nf
ServerAlias www.hyperprint.uk.nf
Redirect / https://hyperprint.uk.nf/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
//PHPmyadmin public
Alias /phpmyadmin22336655881144255665512223365522541 "/opt/lampp/phpmyadmin"
# since XAMPP 1.4.3
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
Require local
Order allow,deny
Allow from all
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
- Get link
- X
- Other Apps
Comments
Post a Comment