From Hentschel
Jump to: navigation, search

HM server networking

948 bytes added, 06:05, 27 March 2017
/* Setting up add'l hosts via Apache ProxyPass */
[[File:hm-panel01.png|400px|left]]
[[File:hm-panel02.png|400px|left]]
 
* this stuff is done via cPanel, so need to find the location where cPanel expects the config files. The httpd.conf file under ''/usr/local/apacheconf'' gives some hints:
<pre> # To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/hentsche/isy.hentschel.net/*.conf"</pre>
 
Create the directory that this path entry is looking for, and chown to the web user:
<pre>
root@server.hentschel.net [hentsche]# mkdir isy.hentschel.net
root@server.hentschel.net [hentsche]# chown hentsche:hentsche isy.hentschel.net
</pre>
 
Add a file there that looks like:
<pre>
ServerName isy.hentschel.net
ProxyRequests On
# Order deny,allow
# Allow from all
ProxyPass / http://192.168.1.99/
ProxyPassReverse / http://192.168.1.99/
# Order allow,deny
# Allow from all
</pre>
and name it isy.hentschel.net.conf. Make sure to chown to hentsche this file too.