Setting up a VirtualHost Proxy
I want to setup a virtual host proxy for a NodeJS application running on an account. I'm accessing the account by
suPHP_UserGroup dev dev
SuexecUserGroup dev dev
RMode config
RUidGid dev dev
# For more information on MPM ITK, please read:
# apache2-mpm-itk
AssignUserID dev dev
PassengerUser dev
PassengerGroup dev
UserDir enabled dev
-
Looks like it's gotta be a domain. Can't do this with a tilde username. 0 -
Looks like it's gotta be a domain. Can't do this with a tilde username.
Hello, Thank you for updating us with the outcome. Note that if you'd like to preview your website before updating the DNS, you can edit the hosts file on your workstation: How to Modify your hosts File - cPanel Knowledge Base - cPanel Documentation Thank you.0 -
Hello, I have slightly a similar problem, but not for a tilde user. I would like to set up a virtual host proxy for a main domain, example.com I added these lines in the post virtual host in EasyApache4: Require all granted ProxyPass http://localhost:5000/ ProxyPassReverse http://localhost:5000/
This is working fine. However, when I enter the URL of the addon domain, example.org, I get the same welcome web page as the example.com. It should actually be different. Is there a way to do it so that the addon domain is not impacted? Thank you.0
Please sign in to leave a comment.
Comments
3 comments