- Create a subdomain in cPanel using the "subdomains" tool
- Create the following directory path using a command prompt:
/usr/local/apache/conf/userdata/std/2_2/[cPanel user]/[sub domain]/
- create a *.conf file in the directory. I called it "kb.frankenweb.net.conf"
- Place the following in the config file:
ServerName kb.frankenweb.net
ProxyRequests On
Order deny,allow
Allow from all
ProxyPass / http://frankencloud.co.uk:8090/
ProxyPassReverse / http://frankencloud.co.uk:8090/
Order allow,deny
Allow from all
- Test that the config file is picked up by cPanel, and implement the change:
/scripts/verify_vhost_includes --show-test-output
/scripts/verify_vhost_includes --commit /scripts/ensure_vhost_includes --all-users
/usr/local/cpanel/bin/apache_conf_distiller --update
/scripts/rebuildhttpdconf
- Use WHM to restart Apache