{"id":1593,"date":"2016-01-30T11:17:49","date_gmt":"2016-01-30T19:17:49","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=1593"},"modified":"2016-01-30T11:17:49","modified_gmt":"2016-01-30T19:17:49","slug":"lan-virtual-vpn-apache2-rewrite-link-address","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2016\/01\/30\/lan-virtual-vpn-apache2-rewrite-link-address\/","title":{"rendered":"LAN, virtual VPN apache2 rewrite link address"},"content":{"rendered":"<div id=\"wmd-preview\" class=\"wmd-preview\" style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">CiviCRM 4.6.6 on Drupal 7.41 running through Apache2 on Linux Mint 17. This is not a publicly accessible site.<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">If I am on the LAN I can access CiviCRM and all the links work:<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">10.141.229.171\/?q=civicrm\/dashboard<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">I have a virtual VPN and when I connect I get to log into CiviCRM but the links and requests all go to the LAN address so the system fails to work.<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">10.12.0.23\/?q=civicrm\/dashboard<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">I know that the CiviCRM internal links are set to the 10.141.229.171 address but I would like my VPN clients to access the site as well.<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">The best I can come up with is that I need to:<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><strong style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">On my VPN computer<\/strong> any link for 10.141.229.171\/page_name gets rewritten to be sent as 10.12.0.23\/page_name<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><strong style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">On the server<\/strong> any request for 10.12.0.23\/page_name gets rewritten to be 10.141.229.171\/page_name<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">Unfortunately I am struggling to find out how to do that. Is it even the right way? Can it be done in any way?<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">Thank you in advance for any help you can provide. John in Oregon, US<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">==============<\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\"><a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/misc\/rewriteguide.html\">http:\/\/httpd.apache.org\/docs\/2.0\/misc\/rewriteguide.html<\/a><\/p>\n<p style=\"color: black ! important;\" data-blkn-colour=\"rgba(51,51,51,1)\">\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>CiviCRM 4.6.6 on Drupal 7.41 running through Apache2 on Linux Mint 17. This is not a publicly accessible site. If I am on the LAN I can access CiviCRM and all the links work: 10.141.229.171\/?q=civicrm\/dashboard I have a virtual VPN and when I connect I get to log into CiviCRM but the links and requests [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1593","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=1593"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1593\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=1593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=1593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}