From this thread<\/a> My newly installed R710 has a few friends interested in web services, and I’ve gotten requests for hosting Owncloud and Wordpress.<\/p>\n
I’ve cnamed the domains on Cloudflare, but when I added the virtualhost with the subdomain, the top/main domain answers instead.<\/p>\n Here’s my config:<\/p>\n <VirtualHost 10.0.0.10:80> <VirtualHost 10.0.0.11:80> <VirtualHost 10.0.0.12:80> This is a hunch, by try having the subdomains listed FIRST in the config file like below:<\/p>\n Restart Apache and see if that works…<\/p>","upvoteCount":0,"datePublished":"2016-11-21T15:12:43.000Z","url":"https://community.spiceworks.com/t/revising-the-reverse-proxy/541692/4","author":{"@type":"Person","name":"daveanderson3","url":"https://community.spiceworks.com/u/daveanderson3"}},"suggestedAnswer":[{"@type":"Answer","text":" From this thread<\/a> My newly installed R710 has a few friends interested in web services, and I’ve gotten requests for hosting Owncloud and Wordpress.<\/p>\n I’ve cnamed the domains on Cloudflare, but when I added the virtualhost with the subdomain, the top/main domain answers instead.<\/p>\n Here’s my config:<\/p>\n <VirtualHost 10.0.0.10:80> <VirtualHost 10.0.0.11:80> <VirtualHost 10.0.0.12:80> Get rid of the IP addresses in the VirtualHost tag.<\/p>\n They should all look like this:<\/p>\n VirtualHost *:80 Used the wrong example file, I’ve already set all 4 servers as <virtualhost *:80><\/p>","upvoteCount":0,"datePublished":"2016-11-21T14:40:04.000Z","url":"https://community.spiceworks.com/t/revising-the-reverse-proxy/541692/3","author":{"@type":"Person","name":"techtornado","url":"https://community.spiceworks.com/u/techtornado"}},{"@type":"Answer","text":" For now, I dropped owncloud and moved to Nextcloud on port 8443.<\/p>\n Half of my issue was that port 443 was set to forward to the wordpress, not the proxy. I’ll be loading the SSL certs for the photo gallery, Nextcloud, etc. later on, Christmas has me busy.<\/p>\n Thank you for the updated Rproxy tips!
\nI learned how to configure a reverse proxy and do some rewrites to get plex working across the world, but the method for pointing to subdomains aren’t working as expected.<\/p>\n
\nProxyPreserveHost On
\nProxyPass / http://10.0.0.10:80/<\/a>
\nProxyPassReverse / http://10.0.0.10:80/<\/a>
\nServerName example.com<\/a>
\n<\/p>\n
\nProxyPreserveHost On
\nProxyPass / http://10.0.0.11:80/<\/a>
\nProxyPassReverse / http://10.0.0.11:80/<\/a>
\nServerName wordpress.example.com<\/a>
\n<\/p>\n
\nProxyPreserveHost On
\nProxyPass / http://10.0.0.12:80/<\/a>
\nProxyPassReverse / http://10.0.0.12:80/<\/a>
\nServerName owncloud.example.com<\/a>
\n<\/p>","upvoteCount":4,"answerCount":5,"datePublished":"2016-11-21T01:41:57.000Z","author":{"@type":"Person","name":"techtornado","url":"https://community.spiceworks.com/u/techtornado"},"acceptedAnswer":{"@type":"Answer","text":"<VirtualHost *:80> \nProxyPreserveHost On \nProxyPass / http://10.0.0.11:80/ \nProxyPassReverse / http://10.0.0.11:80/ \nServerName wordpress.example.com\n</VirtualHost>\n\n<VirtualHost *:80> \nProxyPreserveHost On \nProxyPass / http://10.0.0.12:80/ \nProxyPassReverse / http://10.0.0.12:80/ \nServerName owncloud.example.com\n</VirtualHost>\n\n<VirtualHost *:80> \nProxyPreserveHost On \nProxyPass / http://10.0.0.10:80/ \nProxyPassReverse / http://10.0.0.10:80/ \nServerName example.com\n</VirtualHost> \n<\/code><\/pre>\n
\nI learned how to configure a reverse proxy and do some rewrites to get plex working across the world, but the method for pointing to subdomains aren’t working as expected.<\/p>\n
\nProxyPreserveHost On
\nProxyPass / http://10.0.0.10:80/<\/a>
\nProxyPassReverse / http://10.0.0.10:80/<\/a>
\nServerName example.com<\/a>
\n<\/p>\n
\nProxyPreserveHost On
\nProxyPass / http://10.0.0.11:80/<\/a>
\nProxyPassReverse / http://10.0.0.11:80/<\/a>
\nServerName wordpress.example.com<\/a>
\n<\/p>\n
\nProxyPreserveHost On
\nProxyPass / http://10.0.0.12:80/<\/a>
\nProxyPassReverse / http://10.0.0.12:80/<\/a>
\nServerName owncloud.example.com<\/a>
\n<\/p>","upvoteCount":4,"datePublished":"2016-11-21T01:41:57.000Z","url":"https://community.spiceworks.com/t/revising-the-reverse-proxy/541692/1","author":{"@type":"Person","name":"techtornado","url":"https://community.spiceworks.com/u/techtornado"}},{"@type":"Answer","text":"
\n(withe brackets around them, I can’t see to post the brackets from my phone)<\/p>","upvoteCount":1,"datePublished":"2016-11-21T02:26:34.000Z","url":"https://community.spiceworks.com/t/revising-the-reverse-proxy/541692/2","author":{"@type":"Person","name":"daveanderson3","url":"https://community.spiceworks.com/u/daveanderson3"}},{"@type":"Answer","text":"
\nSo it was working properly, but the request was being answered by a hardcoded setting.<\/p>\n<\/p>","upvoteCount":0,"datePublished":"2016-12-06T13:39:44.000Z","url":"https://community.spiceworks.com/t/revising-the-reverse-proxy/541692/5","author":{"@type":"Person","name":"techtornado","url":"https://community.spiceworks.com/u/techtornado"}}]}}